<!DOCTYPE html>
<!-- saved from url=(0058)https://pkg.go.dev/github.com/astaxie/beego#section-readme -->
<html lang="en" data-layout="responsive" data-local="" style="--js-unit-header-height: 8.8125rem; --js-sticky-header-height: 3.5rem; --js-unit-header-top: -5.3125rem;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <script>
      window.addEventListener('error', window.__err=function f(e){f.p=f.p||[];f.p.push(e)});
    </script>
    <script>
      (function() {
        const theme = document.cookie.match(/prefers-color-scheme=(light|dark|auto)/)?.[1]
        if (theme) {
          document.querySelector('html').setAttribute('data-theme', theme);
        }
      }())
    </script>
    
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="Description" content="Package beego provide a MVC framework beego: an open-source, high-performance, modular, full-stack web framework It is used for rapid development of RESTful APIs, web apps and backend services in Go.">
    
    <meta class="js-gtmID" data-gtmid="GTM-W8MVQXG">
    <link rel="shortcut icon" href="https://pkg.go.dev/static/shared/icon/favicon.ico">
    
  
    <link rel="canonical" href="https://pkg.go.dev/github.com/astaxie/beego">
  

    <link href="./beego package - github.com_astaxie_beego - Go Packages_files/frontend.min.css" rel="stylesheet">
    
    <link rel="search" type="application/opensearchdescription+xml" href="https://pkg.go.dev/opensearch.xml" title="Go Packages">
    
    
  <title>beego package - github.com/astaxie/beego - Go Packages</title>

    
  <link href="./beego package - github.com_astaxie_beego - Go Packages_files/unit.min.css" rel="stylesheet">
  
  <link href="./beego package - github.com_astaxie_beego - Go Packages_files/main.min.css" rel="stylesheet">


  <script src="./beego package - github.com_astaxie_beego - Go Packages_files/dialog-polyfill.js"></script><script src="./beego package - github.com_astaxie_beego - Go Packages_files/frontend.js" type="module" async="" defer=""></script><script src="https://www.googletagmanager.com/gtm.js?id=GTM-W8MVQXG" type="module" async="" defer=""></script><script src="./beego package - github.com_astaxie_beego - Go Packages_files/main.js" type="module" async="" defer=""></script><script src="./beego package - github.com_astaxie_beego - Go Packages_files/unit.js" type="module" async="" defer=""></script></head>
  <body>
    
    <script>
      function loadScript(src, mod = true) {
        let s = document.createElement('script');
        s.src = src;
        if (mod) {
          s.type = 'module';
          s.async = true;
          s.defer = true
        }
        document.head.appendChild(s);
      }
      loadScript("/third_party/dialog-polyfill/dialog-polyfill.js", false)
      loadScript("/static/frontend/frontend.js");
    </script>
    
  <header class="go-Header go-Header--full js-siteHeader"><div></div>
    <div class="go-Header-inner go-Header-inner--dark">
      <nav class="go-Header-nav">
        <a href="https://go.dev/" class="js-headerLogo" data-gtmc="nav link" data-test-id="go-header-logo-link" role="heading" aria-level="1">
          <img class="go-Header-logo" src="./beego package - github.com_astaxie_beego - Go Packages_files/go-white.svg" alt="Go">
        </a>
         <div class="skip-navigation-wrapper">
            <a class="skip-to-content-link" aria-label="Skip to main content" href="https://pkg.go.dev/github.com/astaxie/beego#main-content"> Skip to Main Content </a>
          </div>
        <div class="go-Header-rightContent">
          
<div class="go-SearchForm js-searchForm">
  <form class="go-InputGroup go-ShortcutKey go-SearchForm-form" action="https://pkg.go.dev/search" data-shortcut="/" data-shortcut-alt="search" data-gtmc="search form" aria-label="Search for a package" role="search">
    <input name="q" class="go-Input js-searchFocus" aria-label="Search for a package" type="search" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" placeholder="Search packages or symbols" value="">
    <input name="m" value="" hidden="">
    <button class="go-Button go-Button--inverted" aria-label="Submit search">
      <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/search_gm_grey_24dp.svg" alt="">
    </button>
  </form>
  <button class="go-SearchForm-expandSearch js-expandSearch" data-gtmc="nav button" aria-label="Open search" data-test-id="expand-search">
    <img class="go-Icon go-Icon--inverted" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/search_gm_grey_24dp.svg" alt="">

  </button>
</div>

          <ul class="go-Header-menu">
            <li class="go-Header-menuItem">
              <a class="js-desktop-menu-hover" href="https://pkg.go.dev/github.com/astaxie/beego#" data-gtmc="nav link">
                Why Go
                <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/arrow_drop_down_gm_grey_24dp.svg" alt="submenu dropdown icon">
              </a>
              <ul class="go-Header-submenu go-Header-submenu--why js-desktop-submenu-hover" aria-label="submenu">
                  <li class="go-Header-submenuItem">
                    <div>
                      <a href="https://go.dev/solutions#case-studies">
                        Case Studies
                      </a>
                    </div>
                    <p>Common problems companies solve with Go</p>
                  </li>
                  <li class="go-Header-submenuItem">
                    <div>
                      <a href="https://go.dev/solutions#use-cases">
                        Use Cases
                      </a>
                    </div>
                    <p>Stories about how and why companies use Go</p>
                  </li>
                  <li class="go-Header-submenuItem">
                    <div>
                      <a href="https://go.dev/security/policy/">
                        Security Policy
                      </a>
                    </div>
                    <p>How Go can help keep you secure by default</p>
                  </li>
              </ul>
            </li>
            <li class="go-Header-menuItem">
              <a href="https://go.dev/learn/" data-gtmc="nav link">Learn</a>
            </li>
            <li class="go-Header-menuItem">
              <a class="js-desktop-menu-hover" href="https://pkg.go.dev/github.com/astaxie/beego#" data-gtmc="nav link">
                Docs
                <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/arrow_drop_down_gm_grey_24dp.svg" alt="submenu dropdown icon">
              </a>
              <ul class="go-Header-submenu go-Header-submenu--docs js-desktop-submenu-hover" aria-label="submenu">
                <li class="go-Header-submenuItem">
                  <div>
                    <a href="https://go.dev/doc/effective_go">
                      <span>Effective Go</span>
                    </a>
                  </div>
                  <p>Tips for writing clear, performant, and idiomatic Go code</p>
                </li>
                <li class="go-Header-submenuItem">
                  <div>
                    <a href="https://go.dev/doc/">
                      <span>Go User Manual</span>
                    </a>
                  </div>
                  <p>A complete introduction to building software with Go</p>
                </li>
                <li class="go-Header-submenuItem">
                  <div>
                    <a href="https://pkg.go.dev/std">
                      <span>Standard library</span>
                    </a>
                  </div>
                  <p>Reference documentation for Go's standard library</p>
                </li>
                <li class="go-Header-submenuItem">
                  <div>
                    <a href="https://go.dev/doc/devel/release">
                      <span>Release Notes</span>
                    </a>
                  </div>
                  <p>Learn what's new in each Go release</p>
                </li>
              </ul>
            </li>
            <li class="go-Header-menuItem go-Header-menuItem--active">
              <a href="https://pkg.go.dev/" data-gtmc="nav link">Packages</a>
            </li>
            <li class="go-Header-menuItem">
              <a class="js-desktop-menu-hover" href="https://pkg.go.dev/github.com/astaxie/beego#" data-gtmc="nav link">
                Community
                <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/arrow_drop_down_gm_grey_24dp.svg" alt="submenu dropdown icon">
              </a>
              <ul class="go-Header-submenu go-Header-submenu--community js-desktop-submenu-hover" aria-label="submenu">
                <li class="go-Header-submenuItem">
                  <div>
                    <a href="https://go.dev/talks/">
                      <span>Recorded Talks</span>
                    </a>
                  </div>
                  <p>Videos from prior events</p>
                </li>
                <li class="go-Header-submenuItem">
                  <div>
                    <a href="https://www.meetup.com/pro/go">
                      <span>Meetups</span>
                      <i class="material-icons">
                        <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/launch_gm_grey_24dp.svg" alt="">
                      </i>
                    </a>
                  </div>
                  <p>Meet other local Go developers</p>
                </li>
                <li class="go-Header-submenuItem">
                  <div>
                    <a href="https://github.com/golang/go/wiki/Conferences">
                      <span>Conferences</span>
                      <i class="material-icons">
                        <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/launch_gm_grey_24dp.svg" alt="">
                      </i>
                    </a>
                  </div>
                  <p>Learn and network with Go developers from around the world</p>
                </li>
                <li class="go-Header-submenuItem">
                  <div>
                    <a href="https://go.dev/blog">
                      <span>Go blog</span>
                    </a>
                  </div>
                  <p>The Go project's official blog.</p>
                </li>
                <li class="go-Header-submenuItem">
                  <div>
                    <a href="https://go.dev/help">
                      <span>Go project</span>
                    </a>
                  </div>
                  <p>Get help and stay informed from Go</p>
                </li>
                <li class="go-Header-submenuItem">
                  <div>
                    Get connected
                  </div>
                  <p></p>
                  <div class="go-Header-socialIcons">
                      <a class="go-Header-socialIcon" aria-label="Get connected with google-groups (Opens in new window)" title="Get connected with google-groups (Opens in new window)" href="https://groups.google.com/g/golang-nuts">
                        <img src="./beego package - github.com_astaxie_beego - Go Packages_files/google-groups.svg">
                      </a>
                      <a class="go-Header-socialIcon" aria-label="Get connected with github (Opens in new window)" title="Get connected with github (Opens in new window)" href="https://github.com/golang">
                        <img src="./beego package - github.com_astaxie_beego - Go Packages_files/github.svg">
                      </a>
                      <a class="go-Header-socialIcon" aria-label="Get connected with twitter (Opens in new window)" title="Get connected with twitter (Opens in new window)" href="https://twitter.com/golang">
                        <img src="./beego package - github.com_astaxie_beego - Go Packages_files/twitter.svg">
                      </a>
                      <a class="go-Header-socialIcon" aria-label="Get connected with reddit (Opens in new window)" title="Get connected with reddit (Opens in new window)" href="https://www.reddit.com/r/golang/">
                        <img src="./beego package - github.com_astaxie_beego - Go Packages_files/reddit.svg">
                      </a>
                      <a class="go-Header-socialIcon" aria-label="Get connected with slack (Opens in new window)" title="Get connected with slack (Opens in new window)" href="https://invite.slack.golangbridge.org/">
                        <img src="./beego package - github.com_astaxie_beego - Go Packages_files/slack.svg">
                      </a>
                      <a class="go-Header-socialIcon" aria-label="Get connected with stack-overflow (Opens in new window)" title="" href="https://stackoverflow.com/collectives/go">
                        <img src="./beego package - github.com_astaxie_beego - Go Packages_files/stack-overflow.svg">
                      </a>
                  </div>
                </li>
              </ul>
            </li>
          </ul>
          <button class="go-Header-navOpen js-headerMenuButton go-Header-navOpen--white" data-gtmc="nav button" aria-label="Open navigation">
          </button>
        </div>
      </nav>
    </div>
  </header>
  <aside class="go-NavigationDrawer js-header">
    <nav class="go-NavigationDrawer-nav">
      <div class="go-NavigationDrawer-header">
        <a href="https://go.dev/" tabindex="-1">
          <img class="go-NavigationDrawer-logo" src="./beego package - github.com_astaxie_beego - Go Packages_files/go-blue.svg" alt="Go.">
        </a>
      </div>
      <ul class="go-NavigationDrawer-list">
          <li class="go-NavigationDrawer-listItem js-mobile-subnav-trigger go-NavigationDrawer-hasSubnav">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#" tabindex="-1">
              <span>Why Go</span>
              <i class="material-icons">
                <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/navigate_next_gm_grey_24dp.svg" alt="">
              </i>
            </a>

            <div class="go-NavigationDrawer go-NavigationDrawer-submenuItem">
              <div class="go-NavigationDrawer-nav">
                <div class="go-NavigationDrawer-header">
                  <a href="https://pkg.go.dev/github.com/astaxie/beego#" tabindex="-1">
                    <i class="material-icons">
                      <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/navigate_before_gm_grey_24dp.svg" alt="">
                      </i>
                      Why Go
                  </a>
                </div>
                <ul class="go-NavigationDrawer-list">
                  <li class="go-NavigationDrawer-listItem">
                    <a href="https://go.dev/solutions#case-studies" tabindex="-1">
                      Case Studies
                    </a>
                  </li>
                  <li class="go-NavigationDrawer-listItem">
                    <a href="https://go.dev/solutions#use-cases" tabindex="-1">
                      Use Cases
                    </a>
                  </li>
                  <li class="go-NavigationDrawer-listItem">
                    <a href="https://go.dev/security/policy/" tabindex="-1">
                      Security Policy
                    </a>
                  </li>
                </ul>
              </div>
            </div>
          </li>
          <li class="go-NavigationDrawer-listItem">
            <a href="https://go.dev/learn/" tabindex="-1">Learn</a>
          </li>
          <li class="go-NavigationDrawer-listItem js-mobile-subnav-trigger go-NavigationDrawer-hasSubnav">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#" tabindex="-1">
              <span>Docs</span>
              <i class="material-icons">
                <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/navigate_next_gm_grey_24dp.svg" alt="">
              </i>
            </a>

            <div class="go-NavigationDrawer go-NavigationDrawer-submenuItem">
              <div class="go-NavigationDrawer-nav">
                <div class="go-NavigationDrawer-header">
                  <a href="https://pkg.go.dev/github.com/astaxie/beego#" tabindex="-1"><i class="material-icons">
                    <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/navigate_before_gm_grey_24dp.svg" alt="">
                    </i>
                    Docs
                  </a>
                </div>
                <ul class="go-NavigationDrawer-list">
                  <li class="go-NavigationDrawer-listItem">
                    <a href="https://go.dev/doc/effective_go" tabindex="-1">
                      Effective Go
                    </a>
                  </li>
                  <li class="go-NavigationDrawer-listItem">
                    <a href="https://go.dev/doc/" tabindex="-1">
                      Go User Manual
                    </a>
                  </li>
                  <li class="go-NavigationDrawer-listItem">
                    <a href="https://pkg.go.dev/std" tabindex="-1">
                      Standard library
                    </a>
                  </li>
                  <li class="go-NavigationDrawer-listItem">
                    <a href="https://go.dev/doc/devel/release" tabindex="-1">
                      Release Notes
                    </a>
                  </li>
                </ul>
              </div>
            </div>
          </li>
          <li class="go-NavigationDrawer-listItem go-NavigationDrawer-listItem--active">
            <a href="https://pkg.go.dev/" tabindex="-1">Packages</a>
          </li>
          <li class="go-NavigationDrawer-listItem js-mobile-subnav-trigger go-NavigationDrawer-hasSubnav">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#" tabindex="-1">
              <span>Community</span>
              <i class="material-icons">
                <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/navigate_next_gm_grey_24dp.svg" alt="">
              </i>
            </a>
            <div class="go-NavigationDrawer go-NavigationDrawer-submenuItem">
              <div class="go-NavigationDrawer-nav">
                <div class="go-NavigationDrawer-header">
                  <a href="https://pkg.go.dev/github.com/astaxie/beego#" tabindex="-1">
                    <i class="material-icons">
                      <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/navigate_before_gm_grey_24dp.svg" alt="">
                    </i>
                    Community
                  </a>
                </div>
                <ul class="go-NavigationDrawer-list">
                  <li class="go-NavigationDrawer-listItem">
                    <a href="https://go.dev/talks/" tabindex="-1">
                      Recorded Talks
                    </a>
                  </li>
                  <li class="go-NavigationDrawer-listItem">
                    <a href="https://www.meetup.com/pro/go" tabindex="-1">
                      Meetups
                      <i class="material-icons">
                      <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/launch_gm_grey_24dp.svg" alt="">
                      </i>
                    </a>
                  </li>
                  <li class="go-NavigationDrawer-listItem">
                    <a href="https://github.com/golang/go/wiki/Conferences" tabindex="-1">
                      Conferences
                      <i class="material-icons">
                        <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/launch_gm_grey_24dp.svg" alt="">
                      </i>
                    </a>
                  </li>
                  <li class="go-NavigationDrawer-listItem">
                    <a href="https://go.dev/blog" tabindex="-1">
                      Go blog
                    </a>
                  </li>
                  <li class="go-NavigationDrawer-listItem">
                    <a href="https://go.dev/help" tabindex="-1">
                      Go project
                    </a>
                  </li>
                  <li class="go-NavigationDrawer-listItem">
                    <div>Get connected</div>
                    <div class="go-Header-socialIcons">
                        <a class="go-Header-socialIcon" href="https://groups.google.com/g/golang-nuts" tabindex="-1"><img src="./beego package - github.com_astaxie_beego - Go Packages_files/google-groups.svg"></a>
                        <a class="go-Header-socialIcon" href="https://github.com/golang" tabindex="-1"><img src="./beego package - github.com_astaxie_beego - Go Packages_files/github.svg"></a>
                        <a class="go-Header-socialIcon" href="https://twitter.com/golang" tabindex="-1"><img src="./beego package - github.com_astaxie_beego - Go Packages_files/twitter.svg"></a>
                        <a class="go-Header-socialIcon" href="https://www.reddit.com/r/golang/" tabindex="-1"><img src="./beego package - github.com_astaxie_beego - Go Packages_files/reddit.svg"></a>
                        <a class="go-Header-socialIcon" href="https://invite.slack.golangbridge.org/" tabindex="-1"><img src="./beego package - github.com_astaxie_beego - Go Packages_files/slack.svg"></a>
                        <a class="go-Header-socialIcon" href="https://stackoverflow.com/collectives/go" tabindex="-1"><img src="./beego package - github.com_astaxie_beego - Go Packages_files/stack-overflow.svg"></a>
                    </div>
                  </li>
                </ul>
              </div>
            </div>
          </li>
      </ul>
    </nav>
  </aside>
  <div class="go-NavigationDrawer-scrim js-scrim" role="presentation"></div>

    
  <main class="go-Main" id="main-content">
    <div class="go-Main-banner" role="alert">
        <details class="js-versionDetails">
            <summary class="go-Message go-Message--alert">
            <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/alert_gm_grey_24dp.svg" alt="Alert">&nbsp;
            Affected by <a href="https://pkg.go.dev/vuln/GO-2022-0463">GO-2022-0463</a>
             and 2 other vulnerabilities
          </summary>
          <div>
            
  <div class="go-Message go-Message--alert">
    <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/alert_gm_grey_24dp.svg" alt="Alert">&nbsp;
    <a href="https://pkg.go.dev/vuln/GO-2022-0463">GO-2022-0463</a>: Access control bypass due to broad route matching in github.com/beego/beego and beego/v2
  </div>

  <div class="go-Message go-Message--alert">
    <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/alert_gm_grey_24dp.svg" alt="Alert">&nbsp;
    <a href="https://pkg.go.dev/vuln/GO-2022-0569">GO-2022-0569</a>: Path traversal in github.com/beego/beego and beego/v2
  </div>

  <div class="go-Message go-Message--alert">
    <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/alert_gm_grey_24dp.svg" alt="Alert">&nbsp;
    <a href="https://pkg.go.dev/vuln/GO-2022-0572">GO-2022-0572</a>: Access control bypass via incorrect route lookup in github.com/beego/beego and beego/v2
  </div>

          </div>
        </details>
    </div>
    <header class="go-Main-header js-mainHeader">
  
  
  <nav class="go-Main-headerBreadcrumb go-Breadcrumb" aria-label="Breadcrumb" data-test-id="UnitHeader-breadcrumb">
    <ol>
      
        
          <li data-test-id="UnitHeader-breadcrumbItem">
            <a href="https://pkg.go.dev/" data-gtmc="breadcrumb link">Discover Packages</a>
          </li>
        
        <li>
          <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3" data-gtmc="breadcrumb link" aria-current="location" data-test-id="UnitHeader-breadcrumbCurrent">
            github.com/astaxie/beego
          </a>
          
            <button class="go-Button go-Button--inline go-Clipboard js-clipboard" title="Copy path to clipboard.

github.com/astaxie/beego" aria-label="Copy Path to Clipboard" data-to-copy="github.com/astaxie/beego" data-gtmc="breadcrumbs button">
              <img class="go-Icon go-Icon--accented" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/content_copy_gm_grey_24dp.svg" alt="">
            </button>
          
        
      </li>
    </ol>
  </nav>

  <div class="go-Main-headerContent">
    
  <div class="go-Main-headerTitle js-stickyHeader">
    <a class="go-Main-headerLogo" href="https://go.dev/" aria-hidden="true" tabindex="-1" data-gtmc="header link" aria-label="Link to Go Homepage">
      <img height="78" width="207" src="./beego package - github.com_astaxie_beego - Go Packages_files/go-blue.svg" alt="Go">
    </a>
    <h1 class="UnitHeader-titleHeading" data-test-id="UnitHeader-title">beego</h1>
    
      <span class="go-Chip go-Chip--inverted">package</span>
    
      <span class="go-Chip go-Chip--inverted">module</span>
    
    
      
        <button class="go-Button go-Button--inline go-Clipboard js-clipboard" title="Copy path to clipboard.

github.com/astaxie/beego" aria-label="Copy Path to Clipboard" data-to-copy="github.com/astaxie/beego" data-gtmc="title button" tabindex="-1">
          <img class="go-Icon go-Icon--accented" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/content_copy_gm_grey_24dp.svg" alt="">
        </button>
      
    
  </div>

    
  <div class="go-Main-headerDetails">
    
      
  <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-version">
    <a href="https://pkg.go.dev/github.com/astaxie/beego?tab=versions" aria-label="Version: v1.12.3" data-gtmc="header link" aria-describedby="version-description">
      <span class="go-textSubtle" aria-hidden="true">Version: </span>
        v1.12.3
    </a>
    <div class="screen-reader-only" id="version-description" hidden="">
      Opens a new window with list of versions in this module.
    </div>
    
    <span class="DetailsHeader-badge--latest" data-test-id="UnitHeader-minorVersionBanner">
      <span class="go-Chip DetailsHeader-span--latest">Latest</span>
      <span class="go-Chip DetailsHeader-span--notAtLatest">
        Latest
        
  <details class="go-Tooltip js-tooltip" data-gtmc="tooltip">
    <summary>
      <img class="go-Icon go-Icon--inverted" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/alert_gm_grey_24dp.svg" alt="Warning">
    </summary>
    <p>This package is not in the latest version of its module.</p>
  </details>

      </span>
      <a href="https://pkg.go.dev/github.com/astaxie/beego" aria-label="Go to Latest Version" data-gtmc="header link">
        <span class="go-Chip go-Chip--alert DetailsHeader-span--goToLatest">Go to latest</span>
      </a>
    </span>
  </span>

      
  <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-commitTime">
    Published: Nov  3, 2020
  </span>

      
  <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-licenses">
    License: <a href="https://pkg.go.dev/github.com/astaxie/beego?tab=licenses" data-test-id="UnitHeader-license" data-gtmc="header link" aria-describedby="license-description">Apache-2.0</a>
      
    
  </span>
  <div class="screen-reader-only" id="license-description" hidden="">
    Opens a new window with license information.
  </div>

      
        
  <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-imports">
    <a href="https://pkg.go.dev/github.com/astaxie/beego?tab=imports" aria-label="Imports: 43" data-gtmc="header link" aria-describedby="imports-description">
      <span class="go-textSubtle">Imports: </span>43
    </a>
  </span>
  <div class="screen-reader-only" id="imports-description" hidden="">
    Opens a new window with list of imports.
  </div>

        
  <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-importedby">
    <a href="https://pkg.go.dev/github.com/astaxie/beego?tab=importedby" aria-label="Imported By: 14,473" data-gtmc="header link" aria-describedby="importedby-description">
       <span class="go-textSubtle">Imported by: </span>14,473
    </a>
  </span>
  <div class="screen-reader-only" id="importedby-description" hidden="">
    Opens a new window with list of known importers.
  </div>

      
    
  </div>
  
  <div class="UnitHeader-overflowContainer">
    <svg class="UnitHeader-overflowImage" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
      <path d="M0 0h24v24H0z" fill="none"></path>
      <path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path>
    </svg>
    <select class="UnitHeader-overflowSelect js-selectNav" tabindex="-1">
      <option value="/">Main</option>
      <option value="/github.com/astaxie/beego?tab=versions">
        Versions
      </option>
      <option value="/github.com/astaxie/beego?tab=licenses">
        Licenses
      </option>
      
        <option value="/github.com/astaxie/beego?tab=imports">
          Imports
        </option>
        <option value="/github.com/astaxie/beego?tab=importedby">
          Imported By
        </option>
      
    </select>
  </div>


  </div>

</header>
    <aside class="go-Main-aside  js-mainAside"><div></div>
  
  <div class="UnitMeta">
    <h2 class="go-textLabel">Details</h2>
    
  <ul class="UnitMeta-details">
    <li>
      <details class="go-Tooltip js-tooltip" data-gtmc="tooltip">
        <summary class="go-textSubtle">
          
  <img class="go-Icon go-Icon--accented" tabindex="0" role="button" src="./beego package - github.com_astaxie_beego - Go Packages_files/check_circle_gm_grey_24dp.svg" alt="checked" aria-label="Valid file, toggle tooltip" height="24" width="24">

          Valid <a href="https://github.com/astaxie/beego/tree/v1.12.3/go.mod" target="_blank" rel="noopener">go.mod</a> file
          <img class="go-Icon" role="button" tabindex="0" src="./beego package - github.com_astaxie_beego - Go Packages_files/help_gm_grey_24dp.svg" alt="" aria-label="Toggle go.mod validity tooltip" height="24" width="24">
        </summary>
        <p aria-live="polite" role="tooltip">
          The Go module system was introduced in Go 1.11 and is the official dependency management
          solution for Go.
        </p>
      </details>
    </li>
    <li>
      <details class="go-Tooltip js-tooltip" data-gtmc="tooltip">
        <summary class="go-textSubtle">
          
  <img class="go-Icon go-Icon--accented" tabindex="0" role="button" src="./beego package - github.com_astaxie_beego - Go Packages_files/check_circle_gm_grey_24dp.svg" alt="checked" aria-label="Valid file, toggle tooltip" height="24" width="24">

          Redistributable license
          <img class="go-Icon" role="button" tabindex="0" src="./beego package - github.com_astaxie_beego - Go Packages_files/help_gm_grey_24dp.svg" alt="" aria-label="Toggle redistributable help tooltip" height="24" width="24">
        </summary>
        <p aria-live="polite" role="tooltip">
          Redistributable licenses place minimal restrictions on how software can be used,
          modified, and redistributed.
        </p>
      </details>
    </li>
    <li>
      <details class="go-Tooltip js-tooltip" data-gtmc="tooltip">
        <summary class="go-textSubtle">
          
  <img class="go-Icon go-Icon--accented" tabindex="0" role="button" src="./beego package - github.com_astaxie_beego - Go Packages_files/check_circle_gm_grey_24dp.svg" alt="checked" aria-label="Valid file, toggle tooltip" height="24" width="24">

          Tagged version
          <img class="go-Icon" role="button" tabindex="0" src="./beego package - github.com_astaxie_beego - Go Packages_files/help_gm_grey_24dp.svg" alt="" aria-label="Toggle tagged version tooltip" height="24" width="24">
        </summary>
        <p aria-live="polite" role="tooltip">Modules with tagged versions give importers more predictable builds.</p>
      </details>
    </li>
    <li>
      <details class="go-Tooltip js-tooltip" data-gtmc="tooltip">
        <summary class="go-textSubtle">
          
  <img class="go-Icon go-Icon--accented" tabindex="0" role="button" src="./beego package - github.com_astaxie_beego - Go Packages_files/check_circle_gm_grey_24dp.svg" alt="checked" aria-label="Valid file, toggle tooltip" height="24" width="24">

          Stable version
          <img class="go-Icon" role="button" tabindex="0" aria-label="Toggle stable version tooltip" src="./beego package - github.com_astaxie_beego - Go Packages_files/help_gm_grey_24dp.svg" alt="" height="24" width="24">
        </summary>
        <p aria-live="polite" role="tooltip">When a project reaches major version v1 it is considered stable.</p>
      </details>
    </li>
    <li class="UnitMeta-detailsLearn">
      <a href="https://pkg.go.dev/about#best-practices" data-gtmc="meta link">Learn more about best practices</a>
    </li>
  </ul>

    <h2 class="go-textLabel">Repository</h2>
    <div class="UnitMeta-repo">
      
        <a href="https://github.com/astaxie/beego" title="https://github.com/astaxie/beego" target="_blank" rel="noopener">
          github.com/astaxie/beego
        </a>
      
    </div>
    
      <h2 class="go-textLabel" data-test-id="links-heading">Links</h2>
      <ul class="UnitMeta-links">
        
        
          <li>
            <a href="https://deps.dev/go/github.com%2Fastaxie%2Fbeego/v1.12.3" title="View this module on Open Source Insights" target="_blank" rel="noopener" data-test-id="meta-link-depsdev">
              <img class="depsdev-Icon" src="./beego package - github.com_astaxie_beego - Go Packages_files/depsdev-logo.svg" alt="Open Source Insights Logo">
              Open Source Insights
            </a>
          </li>
        
        
  

        
  

        
  

      </ul>
    
  </div>

</aside>
    <nav class="go-Main-nav go-Main-nav--sticky js-mainNav" aria-label="Outline"><div></div>
  <div class="go-Main-navDesktop">
    
  <div class="UnitOutline-jumpTo">
    <button class="UnitOutline-jumpToInput go-ShortcutKey js-jumpToInput" aria-controls="jump-to-modal" aria-label="Open Jump to Identifier" data-shortcut="f" data-shortcut-alt="find" data-test-id="jump-to-button" data-gtmc="outline button">
      Jump to ...
    </button>
  </div>
  <ul class="go-Tree js-tree" role="tree" aria-label="Outline" style="--js-tree-height: 164px;">
    
      <li class="js-readmeOutline" role="none">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#section-readme" data-gtmc="outline link" tabindex="0" aria-level="1" aria-owns="_nav_group_README" aria-expanded="true" role="treeitem" aria-selected="true">
          README
        </a>
        
  <ul id="_nav_group_README" role="group">
    
      <li role="none">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#readme-more-info-at-beego-me" data-gtmc="readme outline link" tabindex="-1" aria-level="2" role="treeitem" aria-selected="false">
          More info at beego.me.
        </a>
         
      </li>
    
      <li role="none">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#readme-quick-start" data-gtmc="readme outline link" tabindex="-1" aria-level="2" aria-owns="README_nav_group_Quick_Start" aria-expanded="false" role="treeitem">
          Quick Start
        </a>
        
          <ul role="group" id="README_nav_group_Quick_Start">
            
              <li role="none">
                <a href="https://pkg.go.dev/github.com/astaxie/beego#readme-create-hello-directory-cd-hello-directory" data-gtmc="readme outline link" tabindex="-1" aria-level="3" role="treeitem">
                  Create hello directory, cd hello directory
                </a>
                 
              </li>
            
              <li role="none">
                <a href="https://pkg.go.dev/github.com/astaxie/beego#readme-init-module" data-gtmc="readme outline link" tabindex="-1" aria-level="3" role="treeitem">
                  Init module
                </a>
                 
              </li>
            
              <li role="none">
                <a href="https://pkg.go.dev/github.com/astaxie/beego#readme-download-and-install" data-gtmc="readme outline link" tabindex="-1" aria-level="3" role="treeitem">
                  Download and install
                </a>
                 
              </li>
            
              <li role="none">
                <a href="https://pkg.go.dev/github.com/astaxie/beego#readme-create-file-hello-go" data-gtmc="readme outline link" tabindex="-1" aria-level="3" role="treeitem">
                  Create file hello.go
                </a>
                 
              </li>
            
              <li role="none">
                <a href="https://pkg.go.dev/github.com/astaxie/beego#readme-build-and-run" data-gtmc="readme outline link" tabindex="-1" aria-level="3" role="treeitem">
                  Build and run
                </a>
                 
              </li>
            
              <li role="none">
                <a href="https://pkg.go.dev/github.com/astaxie/beego#readme-go-to-http-localhost-8080" data-gtmc="readme outline link" tabindex="-1" aria-level="3" aria-owns="Quick_Start_nav_group_Go_to_http_localhost_8080" aria-expanded="false" role="treeitem">
                  Go to http://localhost:8080
                </a>
                
                  <ul role="group" id="Quick_Start_nav_group_Go_to_http_localhost_8080">
                    
                      <li role="none">
                        <a href="https://pkg.go.dev/github.com/astaxie/beego#readme-please-see-documentation-for-more" data-gtmc="readme outline link" tabindex="-1" aria-level="4" role="treeitem">
                          Please see Documentation for more.
                        </a>
                      </li>
                    
                      <li role="none">
                        <a href="https://pkg.go.dev/github.com/astaxie/beego#readme-beego-example" data-gtmc="readme outline link" tabindex="-1" aria-level="4" role="treeitem">
                          beego-example
                        </a>
                      </li>
                     
                  </ul>
                 
              </li>
             
          </ul>
         
      </li>
    
      <li role="none">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#readme-features" data-gtmc="readme outline link" tabindex="-1" aria-level="2" role="treeitem">
          Features
        </a>
         
      </li>
    
      <li role="none">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#readme-documentation" data-gtmc="readme outline link" tabindex="-1" aria-level="2" role="treeitem">
          Documentation
        </a>
         
      </li>
    
      <li role="none">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#readme-community" data-gtmc="readme outline link" tabindex="-1" aria-level="2" role="treeitem">
          Community
        </a>
         
      </li>
    
      <li role="none">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#readme-license" data-gtmc="readme outline link" tabindex="-1" aria-level="2" role="treeitem">
          License
        </a>
         
      </li>
     
  </ul>

      </li>
    
    
      <li role="none">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#section-documentation" data-gtmc="outline link" tabindex="-1" aria-level="1" aria-owns="_nav_group_Documentation" aria-expanded="false" role="treeitem">
          Documentation
        </a>
        
<ul role="group" id="_nav_group_Documentation">
  
    <li role="none">
      <a href="https://pkg.go.dev/github.com/astaxie/beego#pkg-overview" data-gtmc="doc outline link" tabindex="-1" aria-level="2" role="treeitem">Overview</a>
    </li>
  <li class="DocNav-overview" role="none">
      <a href="https://pkg.go.dev/github.com/astaxie/beego#pkg-index" data-gtmc="doc outline link" tabindex="-1" aria-level="2" role="treeitem">
        Index
      </a>
      
    </li>
    <li class="DocNav-constants" role="none">
      <a href="https://pkg.go.dev/github.com/astaxie/beego#pkg-constants" data-gtmc="doc outline link" tabindex="-1" aria-level="2" role="treeitem">
        Constants
      </a>
    </li>
    <li class="DocNav-variables" role="none">
      <a href="https://pkg.go.dev/github.com/astaxie/beego#pkg-variables" data-gtmc="doc outline link" tabindex="-1" aria-level="2" role="treeitem">
        Variables
      </a>
    </li>
    <li class="DocNav-functions" role="none">
      <a href="https://pkg.go.dev/github.com/astaxie/beego#pkg-functions" data-gtmc="doc outline link" tabindex="-1" aria-level="2" aria-owns="Documentation_nav_group_Functions" aria-expanded="false" role="treeitem">
        Functions
      </a>
      
        <ul role="group" id="Documentation_nav_group_Functions">
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#AddAPPStartHook" title="AddAPPStartHook(hf)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                AddAPPStartHook(hf)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#AddFuncMap" title="AddFuncMap(key, fn)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                AddFuncMap(key, fn)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#AddNamespace" title="AddNamespace(nl)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                AddNamespace(nl)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#AddTemplateExt" title="AddTemplateExt(ext)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                AddTemplateExt(ext)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#AddViewPath" title="AddViewPath(viewPath)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                AddViewPath(viewPath)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Alert" title="Alert(v)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Alert(v)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#AssetsCSS" title="AssetsCSS(text)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                AssetsCSS(text)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#AssetsJs" title="AssetsJs(text)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                AssetsJs(text)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#BuildTemplate" title="BuildTemplate(dir, files)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                BuildTemplate(dir, files)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Compare" title="Compare(a, b)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Compare(a, b)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#CompareNot" title="CompareNot(a, b)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                CompareNot(a, b)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Critical" title="Critical(v)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Critical(v)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Date" title="Date(t, format)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Date(t, format)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#DateFormat" title="DateFormat(t, layout)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                DateFormat(t, layout)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#DateParse" title="DateParse(dateString, format)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                DateParse(dateString, format)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Debug" title="Debug(v)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Debug(v)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Emergency" title="Emergency(v)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Emergency(v)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Error" title="Error(v)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Error(v)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#ExceptMethodAppend" title="ExceptMethodAppend(action)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                ExceptMethodAppend(action)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Exception" title="Exception(errCode, ctx)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Exception(errCode, ctx)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#ExecuteTemplate" title="ExecuteTemplate(wr, name, data)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                ExecuteTemplate(wr, name, data)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#ExecuteViewPathTemplate" title="ExecuteViewPathTemplate(wr, name, viewPath, data)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                ExecuteViewPathTemplate(wr, name, viewPath, data)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#GetConfig" title="GetConfig(returnType, key, defaultVal)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                GetConfig(returnType, key, defaultVal)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#HTML2str" title="HTML2str(html)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                HTML2str(html)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#HasTemplateExt" title="HasTemplateExt(paths)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                HasTemplateExt(paths)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Htmlquote" title="Htmlquote(text)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Htmlquote(text)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Htmlunquote" title="Htmlunquote(text)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Htmlunquote(text)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Info" title="Info(v)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Info(v)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Informational" title="Informational(v)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Informational(v)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#InitBeegoBeforeTest" title="InitBeegoBeforeTest(appConfigPath)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                InitBeegoBeforeTest(appConfigPath)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#LoadAppConfig" title="LoadAppConfig(adapterName, configPath)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                LoadAppConfig(adapterName, configPath)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#LogAccess" title="LogAccess(ctx, startTime, statusCode)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                LogAccess(ctx, startTime, statusCode)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#MapGet" title="MapGet(arg1, arg2)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                MapGet(arg1, arg2)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#NotNil" title="NotNil(a)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                NotNil(a)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Notice" title="Notice(v)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Notice(v)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#ParseForm" title="ParseForm(form, obj)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                ParseForm(form, obj)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Policy" title="Policy(pattern, method, policy)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Policy(pattern, method, policy)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#RenderForm" title="RenderForm(obj)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                RenderForm(obj)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Run" title="Run(params)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Run(params)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#RunWithMiddleWares" title="RunWithMiddleWares(addr, mws)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                RunWithMiddleWares(addr, mws)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#SetLevel" title="SetLevel(l)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                SetLevel(l)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#SetLogFuncCall" title="SetLogFuncCall(b)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                SetLogFuncCall(b)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#SetLogger" title="SetLogger(adaptername, config)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                SetLogger(adaptername, config)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#SetTemplateFSFunc" title="SetTemplateFSFunc(fnt)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                SetTemplateFSFunc(fnt)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Str2html" title="Str2html(raw)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Str2html(raw)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Substr" title="Substr(s, start, length)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Substr(s, start, length)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#TestBeegoInit" title="TestBeegoInit(ap)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                TestBeegoInit(ap)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Trace" title="Trace(v)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Trace(v)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#URLFor" title="URLFor(endpoint, values)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                URLFor(endpoint, values)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Walk" title="Walk(fs, root, walkFn)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Walk(fs, root, walkFn)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Warn" title="Warn(v)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Warn(v)
              </a>
            </li>
          
            <li role="none">
              <a href="https://pkg.go.dev/github.com/astaxie/beego#Warning" title="Warning(v)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
                Warning(v)
              </a>
            </li>
          
        </ul>
      
    </li>
    <li class="DocNav-types" role="none">
      <a href="https://pkg.go.dev/github.com/astaxie/beego#pkg-types" data-gtmc="doc outline link" tabindex="-1" aria-level="2" aria-owns="Documentation_nav_group_Types" aria-expanded="false" role="treeitem">
        Types
      </a>
      <ul role="group" id="Documentation_nav_group_Types">
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#App" title="type App" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_App" aria-expanded="false" role="treeitem">
              type App
            </a>
            
              <ul role="group" id="Types_nav_group_type_App">
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#AddTemplateEngine" title="AddTemplateEngine(extension, fn)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      AddTemplateEngine(extension, fn)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Any" title="Any(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      Any(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#AutoPrefix" title="AutoPrefix(prefix, c)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      AutoPrefix(prefix, c)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#AutoRouter" title="AutoRouter(c)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      AutoRouter(c)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#DelStaticPath" title="DelStaticPath(url)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      DelStaticPath(url)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Delete" title="Delete(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      Delete(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ErrorController" title="ErrorController(c)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      ErrorController(c)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ErrorHandler" title="ErrorHandler(code, h)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      ErrorHandler(code, h)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Get" title="Get(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      Get(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Handler" title="Handler(rootpath, h, options)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      Handler(rootpath, h, options)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Head" title="Head(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      Head(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Include" title="Include(cList)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      Include(cList)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#InsertFilter" title="InsertFilter(pattern, pos, filter, params)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      InsertFilter(pattern, pos, filter, params)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NewApp" title="NewApp()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NewApp()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Options" title="Options(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      Options(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Patch" title="Patch(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      Patch(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Post" title="Post(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      Post(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Put" title="Put(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      Put(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#RESTRouter" title="RESTRouter(rootpath, c)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      RESTRouter(rootpath, c)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Router" title="Router(rootpath, c, mappingMethods)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      Router(rootpath, c, mappingMethods)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#SetStaticPath" title="SetStaticPath(url, path)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      SetStaticPath(url, path)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#SetViewsPath" title="SetViewsPath(path)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      SetViewsPath(path)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#UnregisterFixedRoute" title="UnregisterFixedRoute(fixedRoute, method)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      UnregisterFixedRoute(fixedRoute, method)
                    </a>
                  </li>
                
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#App.Run" title="(app) Run(mws)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (app) Run(mws)
                    </a>
                  </li>
                
              </ul>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Config" title="type Config" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
              type Config
            </a>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller" title="type Controller" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_Controller" aria-expanded="false" role="treeitem">
              type Controller
            </a>
            
              <ul role="group" id="Types_nav_group_type_Controller">
                
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Abort" title="(c) Abort(code)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Abort(code)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.CheckXSRFCookie" title="(c) CheckXSRFCookie()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) CheckXSRFCookie()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.CustomAbort" title="(c) CustomAbort(status, body)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) CustomAbort(status, body)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.DelSession" title="(c) DelSession(name)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) DelSession(name)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Delete" title="(c) Delete()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Delete()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.DestroySession" title="(c) DestroySession()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) DestroySession()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Finish" title="(c) Finish()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Finish()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Get" title="(c) Get()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Get()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetBool" title="(c) GetBool(key, def)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetBool(key, def)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetControllerAndAction" title="(c) GetControllerAndAction()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetControllerAndAction()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetFile" title="(c) GetFile(key)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetFile(key)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetFiles" title="(c) GetFiles(key)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetFiles(key)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetFloat" title="(c) GetFloat(key, def)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetFloat(key, def)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt" title="(c) GetInt(key, def)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetInt(key, def)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt16" title="(c) GetInt16(key, def)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetInt16(key, def)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt32" title="(c) GetInt32(key, def)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetInt32(key, def)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt64" title="(c) GetInt64(key, def)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetInt64(key, def)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt8" title="(c) GetInt8(key, def)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetInt8(key, def)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetSecureCookie" title="(c) GetSecureCookie(Secret, key)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetSecureCookie(Secret, key)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetSession" title="(c) GetSession(name)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetSession(name)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetString" title="(c) GetString(key, def)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetString(key, def)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetStrings" title="(c) GetStrings(key, def)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetStrings(key, def)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetUint16" title="(c) GetUint16(key, def)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetUint16(key, def)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetUint32" title="(c) GetUint32(key, def)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetUint32(key, def)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetUint64" title="(c) GetUint64(key, def)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetUint64(key, def)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetUint8" title="(c) GetUint8(key, def)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetUint8(key, def)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.HandlerFunc" title="(c) HandlerFunc(fnname)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) HandlerFunc(fnname)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Head" title="(c) Head()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Head()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Init" title="(c) Init(ctx, controllerName, actionName, app)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Init(ctx, controllerName, actionName, app)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Input" title="(c) Input()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Input()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.IsAjax" title="(c) IsAjax()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) IsAjax()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Mapping" title="(c) Mapping(method, fn)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Mapping(method, fn)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Options" title="(c) Options()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Options()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ParseForm" title="(c) ParseForm(obj)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) ParseForm(obj)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Patch" title="(c) Patch()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Patch()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Post" title="(c) Post()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Post()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Prepare" title="(c) Prepare()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Prepare()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Put" title="(c) Put()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Put()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Redirect" title="(c) Redirect(url, code)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Redirect(url, code)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Render" title="(c) Render()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Render()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.RenderBytes" title="(c) RenderBytes()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) RenderBytes()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.RenderString" title="(c) RenderString()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) RenderString()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SaveToFile" title="(c) SaveToFile(fromfile, tofile)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) SaveToFile(fromfile, tofile)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeFormatted" title="(c) ServeFormatted(encoding)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) ServeFormatted(encoding)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeJSON" title="(c) ServeJSON(encoding)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) ServeJSON(encoding)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeJSONP" title="(c) ServeJSONP()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) ServeJSONP()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeXML" title="(c) ServeXML()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) ServeXML()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeYAML" title="(c) ServeYAML()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) ServeYAML()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SessionRegenerateID" title="(c) SessionRegenerateID()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) SessionRegenerateID()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SetData" title="(c) SetData(data)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) SetData(data)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SetSecureCookie" title="(c) SetSecureCookie(Secret, name, value, others)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) SetSecureCookie(Secret, name, value, others)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SetSession" title="(c) SetSession(name, value)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) SetSession(name, value)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.StartSession" title="(c) StartSession()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) StartSession()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.StopRun" title="(c) StopRun()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) StopRun()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Trace" title="(c) Trace()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) Trace()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.URLFor" title="(c) URLFor(endpoint, values)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) URLFor(endpoint, values)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.URLMapping" title="(c) URLMapping()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) URLMapping()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.XSRFFormHTML" title="(c) XSRFFormHTML()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) XSRFFormHTML()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.XSRFToken" title="(c) XSRFToken()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) XSRFToken()
                    </a>
                  </li>
                
              </ul>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerComments" title="type ControllerComments" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
              type ControllerComments
            </a>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice" title="type ControllerCommentsSlice" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_ControllerCommentsSlice" aria-expanded="false" role="treeitem">
              type ControllerCommentsSlice
            </a>
            
              <ul role="group" id="Types_nav_group_type_ControllerCommentsSlice">
                
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice.Len" title="(p) Len()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) Len()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice.Less" title="(p) Less(i, j)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) Less(i, j)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice.Swap" title="(p) Swap(i, j)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) Swap(i, j)
                    </a>
                  </li>
                
              </ul>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerFilter" title="type ControllerFilter" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
              type ControllerFilter
            </a>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerFilterComments" title="type ControllerFilterComments" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
              type ControllerFilterComments
            </a>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerImportComments" title="type ControllerImportComments" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
              type ControllerImportComments
            </a>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInfo" title="type ControllerInfo" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_ControllerInfo" aria-expanded="false" role="treeitem">
              type ControllerInfo
            </a>
            
              <ul role="group" id="Types_nav_group_type_ControllerInfo">
                
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInfo.GetPattern" title="(c) GetPattern()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (c) GetPattern()
                    </a>
                  </li>
                
              </ul>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface" title="type ControllerInterface" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
              type ControllerInterface
            </a>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister" title="type ControllerRegister" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_ControllerRegister" aria-expanded="false" role="treeitem">
              type ControllerRegister
            </a>
            
              <ul role="group" id="Types_nav_group_type_ControllerRegister">
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NewControllerRegister" title="NewControllerRegister()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NewControllerRegister()
                    </a>
                  </li>
                
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Add" title="(p) Add(pattern, c, mappingMethods)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) Add(pattern, c, mappingMethods)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.AddAuto" title="(p) AddAuto(c)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) AddAuto(c)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.AddAutoPrefix" title="(p) AddAutoPrefix(prefix, c)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) AddAutoPrefix(prefix, c)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.AddMethod" title="(p) AddMethod(method, pattern, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) AddMethod(method, pattern, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Any" title="(p) Any(pattern, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) Any(pattern, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Delete" title="(p) Delete(pattern, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) Delete(pattern, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.FindPolicy" title="(p) FindPolicy(cont)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) FindPolicy(cont)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.FindRouter" title="(p) FindRouter(context)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) FindRouter(context)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Get" title="(p) Get(pattern, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) Get(pattern, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.GetContext" title="(p) GetContext()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) GetContext()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.GiveBackContext" title="(p) GiveBackContext(ctx)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) GiveBackContext(ctx)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Handler" title="(p) Handler(pattern, h, options)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) Handler(pattern, h, options)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Head" title="(p) Head(pattern, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) Head(pattern, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Include" title="(p) Include(cList)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) Include(cList)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.InsertFilter" title="(p) InsertFilter(pattern, pos, filter, params)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) InsertFilter(pattern, pos, filter, params)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Options" title="(p) Options(pattern, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) Options(pattern, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Patch" title="(p) Patch(pattern, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) Patch(pattern, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Post" title="(p) Post(pattern, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) Post(pattern, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Put" title="(p) Put(pattern, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) Put(pattern, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.ServeHTTP" title="(p) ServeHTTP(rw, r)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) ServeHTTP(rw, r)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.URLFor" title="(p) URLFor(endpoint, values)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (p) URLFor(endpoint, values)
                    </a>
                  </li>
                
              </ul>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#FileSystem" title="type FileSystem" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_FileSystem" aria-expanded="false" role="treeitem">
              type FileSystem
            </a>
            
              <ul role="group" id="Types_nav_group_type_FileSystem">
                
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#FileSystem.Open" title="(d) Open(name)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (d) Open(name)
                    </a>
                  </li>
                
              </ul>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc" title="type FilterFunc" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
              type FilterFunc
            </a>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterHandler" title="type FilterHandler" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
              type FilterHandler
            </a>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterRouter" title="type FilterRouter" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_FilterRouter" aria-expanded="false" role="treeitem">
              type FilterRouter
            </a>
            
              <ul role="group" id="Types_nav_group_type_FilterRouter">
                
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterRouter.ValidRouter" title="(f) ValidRouter(url, ctx)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (f) ValidRouter(url, ctx)
                    </a>
                  </li>
                
              </ul>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData" title="type FlashData" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_FlashData" aria-expanded="false" role="treeitem">
              type FlashData
            </a>
            
              <ul role="group" id="Types_nav_group_type_FlashData">
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NewFlash" title="NewFlash()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NewFlash()
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#ReadFromRequest" title="ReadFromRequest(c)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      ReadFromRequest(c)
                    </a>
                  </li>
                
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Error" title="(fd) Error(msg, args)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (fd) Error(msg, args)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Notice" title="(fd) Notice(msg, args)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (fd) Notice(msg, args)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Set" title="(fd) Set(key, msg, args)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (fd) Set(key, msg, args)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Store" title="(fd) Store(c)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (fd) Store(c)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Success" title="(fd) Success(msg, args)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (fd) Success(msg, args)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Warning" title="(fd) Warning(msg, args)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (fd) Warning(msg, args)
                    </a>
                  </li>
                
              </ul>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace" title="type LinkNamespace" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_LinkNamespace" aria-expanded="false" role="treeitem">
              type LinkNamespace
            </a>
            
              <ul role="group" id="Types_nav_group_type_LinkNamespace">
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSAfter" title="NSAfter(filterList)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSAfter(filterList)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSAny" title="NSAny(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSAny(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSAutoPrefix" title="NSAutoPrefix(prefix, c)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSAutoPrefix(prefix, c)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSAutoRouter" title="NSAutoRouter(c)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSAutoRouter(c)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSBefore" title="NSBefore(filterList)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSBefore(filterList)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSCond" title="NSCond(cond)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSCond(cond)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSDelete" title="NSDelete(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSDelete(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSGet" title="NSGet(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSGet(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSHandler" title="NSHandler(rootpath, h)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSHandler(rootpath, h)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSHead" title="NSHead(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSHead(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSInclude" title="NSInclude(cList)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSInclude(cList)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSNamespace" title="NSNamespace(prefix, params)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSNamespace(prefix, params)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSOptions" title="NSOptions(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSOptions(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSPatch" title="NSPatch(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSPatch(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSPost" title="NSPost(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSPost(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSPut" title="NSPut(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSPut(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NSRouter" title="NSRouter(rootpath, c, mappingMethods)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NSRouter(rootpath, c, mappingMethods)
                    </a>
                  </li>
                
                
              </ul>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Listen" title="type Listen" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
              type Listen
            </a>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#LogConfig" title="type LogConfig" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
              type LogConfig
            </a>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#M" title="type M" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_M" aria-expanded="false" role="treeitem">
              type M
            </a>
            
              <ul role="group" id="Types_nav_group_type_M">
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#PrintTree" title="PrintTree()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      PrintTree()
                    </a>
                  </li>
                
                
              </ul>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#MiddleWare" title="type MiddleWare" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
              type MiddleWare
            </a>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace" title="type Namespace" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_Namespace" aria-expanded="false" role="treeitem">
              type Namespace
            </a>
            
              <ul role="group" id="Types_nav_group_type_Namespace">
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NewNamespace" title="NewNamespace(prefix, params)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NewNamespace(prefix, params)
                    </a>
                  </li>
                
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Any" title="(n) Any(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) Any(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.AutoPrefix" title="(n) AutoPrefix(prefix, c)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) AutoPrefix(prefix, c)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.AutoRouter" title="(n) AutoRouter(c)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) AutoRouter(c)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Cond" title="(n) Cond(cond)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) Cond(cond)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Delete" title="(n) Delete(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) Delete(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Filter" title="(n) Filter(action, filter)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) Filter(action, filter)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Get" title="(n) Get(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) Get(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Handler" title="(n) Handler(rootpath, h)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) Handler(rootpath, h)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Head" title="(n) Head(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) Head(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Include" title="(n) Include(cList)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) Include(cList)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Namespace" title="(n) Namespace(ns)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) Namespace(ns)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Options" title="(n) Options(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) Options(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Patch" title="(n) Patch(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) Patch(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Post" title="(n) Post(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) Post(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Put" title="(n) Put(rootpath, f)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) Put(rootpath, f)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Router" title="(n) Router(rootpath, c, mappingMethods)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (n) Router(rootpath, c, mappingMethods)
                    </a>
                  </li>
                
              </ul>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#PolicyFunc" title="type PolicyFunc" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
              type PolicyFunc
            </a>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#SessionConfig" title="type SessionConfig" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
              type SessionConfig
            </a>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Tree" title="type Tree" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_Tree" aria-expanded="false" role="treeitem">
              type Tree
            </a>
            
              <ul role="group" id="Types_nav_group_type_Tree">
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#NewTree" title="NewTree()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      NewTree()
                    </a>
                  </li>
                
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Tree.AddRouter" title="(t) AddRouter(pattern, runObject)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (t) AddRouter(pattern, runObject)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Tree.AddTree" title="(t) AddTree(prefix, tree)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (t) AddTree(prefix, tree)
                    </a>
                  </li>
                
                  <li role="none">
                    <a href="https://pkg.go.dev/github.com/astaxie/beego#Tree.Match" title="(t) Match(pattern, ctx)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
                      (t) Match(pattern, ctx)
                    </a>
                  </li>
                
              </ul>
             
          </li>
        
          
          <li role="none">
            <a href="https://pkg.go.dev/github.com/astaxie/beego#WebConfig" title="type WebConfig" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
              type WebConfig
            </a>
             
          </li>
         
      </ul>
    </li>
  
  
</ul>

      </li>
    
    
      <li role="none">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#section-sourcefiles" data-gtmc="outline link" tabindex="-1" aria-level="1" role="treeitem">
          Source Files
        </a>
      </li>
    
    
      <li role="none">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#section-directories" data-gtmc="outline link" tabindex="-1" aria-level="1" role="treeitem">
          Directories
        </a>
      </li>
    
  </ul>

  </div>
  <div class="go-Main-navMobile js-mainNavMobile">
    <label class="go-Label" aria-label="Menu"><select class="go-Select js-selectNav"><optgroup label="Outline"><option label="README" value="github.com/astaxie/beego#section-readme">README</option><option label="Documentation" value="github.com/astaxie/beego#section-documentation">Documentation</option><option label="Source Files" value="github.com/astaxie/beego#section-sourcefiles">Source Files</option><option label="Directories" value="github.com/astaxie/beego#section-directories">Directories</option></optgroup><optgroup label="README"><option label="More info at beego.me." value="github.com/astaxie/beego#readme-more-info-at-beego-me">More info at beego.me.</option><option label="Quick Start" value="github.com/astaxie/beego#readme-quick-start">Quick Start</option><option label="Features" value="github.com/astaxie/beego#readme-features">Features</option><option label="Documentation" value="github.com/astaxie/beego#readme-documentation">Documentation</option><option label="Community" value="github.com/astaxie/beego#readme-community">Community</option><option label="License" value="github.com/astaxie/beego#readme-license">License</option></optgroup><optgroup label="Quick Start"><option label="Create hello directory, cd hello directory" value="github.com/astaxie/beego#readme-create-hello-directory-cd-hello-directory">Create hello directory, cd hello directory</option><option label="Init module" value="github.com/astaxie/beego#readme-init-module">Init module</option><option label="Download and install" value="github.com/astaxie/beego#readme-download-and-install">Download and install</option><option label="Create file hello.go" value="github.com/astaxie/beego#readme-create-file-hello-go">Create file hello.go</option><option label="Build and run" value="github.com/astaxie/beego#readme-build-and-run">Build and run</option><option label="Go to http://localhost:8080" value="github.com/astaxie/beego#readme-go-to-http-localhost-8080">Go to http://localhost:8080</option></optgroup><optgroup label="Go to http://localhost:8080"><option label="Please see Documentation for more." value="github.com/astaxie/beego#readme-please-see-documentation-for-more">Please see Documentation for more.</option><option label="beego-example" value="github.com/astaxie/beego#readme-beego-example">beego-example</option></optgroup><optgroup label="Documentation"><option label="Overview" value="github.com/astaxie/beego#pkg-overview">Overview</option><option label="Index" value="github.com/astaxie/beego#pkg-index">Index</option><option label="Constants" value="github.com/astaxie/beego#pkg-constants">Constants</option><option label="Variables" value="github.com/astaxie/beego#pkg-variables">Variables</option><option label="Functions" value="github.com/astaxie/beego#pkg-functions">Functions</option><option label="Types" value="github.com/astaxie/beego#pkg-types">Types</option></optgroup><optgroup label="Functions"><option label="AddAPPStartHook(hf)" value="github.com/astaxie/beego#AddAPPStartHook">AddAPPStartHook(hf)</option><option label="AddFuncMap(key, fn)" value="github.com/astaxie/beego#AddFuncMap">AddFuncMap(key, fn)</option><option label="AddNamespace(nl)" value="github.com/astaxie/beego#AddNamespace">AddNamespace(nl)</option><option label="AddTemplateExt(ext)" value="github.com/astaxie/beego#AddTemplateExt">AddTemplateExt(ext)</option><option label="AddViewPath(viewPath)" value="github.com/astaxie/beego#AddViewPath">AddViewPath(viewPath)</option><option label="Alert(v)" value="github.com/astaxie/beego#Alert">Alert(v)</option><option label="AssetsCSS(text)" value="github.com/astaxie/beego#AssetsCSS">AssetsCSS(text)</option><option label="AssetsJs(text)" value="github.com/astaxie/beego#AssetsJs">AssetsJs(text)</option><option label="BuildTemplate(dir, files)" value="github.com/astaxie/beego#BuildTemplate">BuildTemplate(dir, files)</option><option label="Compare(a, b)" value="github.com/astaxie/beego#Compare">Compare(a, b)</option><option label="CompareNot(a, b)" value="github.com/astaxie/beego#CompareNot">CompareNot(a, b)</option><option label="Critical(v)" value="github.com/astaxie/beego#Critical">Critical(v)</option><option label="Date(t, format)" value="github.com/astaxie/beego#Date">Date(t, format)</option><option label="DateFormat(t, layout)" value="github.com/astaxie/beego#DateFormat">DateFormat(t, layout)</option><option label="DateParse(dateString, format)" value="github.com/astaxie/beego#DateParse">DateParse(dateString, format)</option><option label="Debug(v)" value="github.com/astaxie/beego#Debug">Debug(v)</option><option label="Emergency(v)" value="github.com/astaxie/beego#Emergency">Emergency(v)</option><option label="Error(v)" value="github.com/astaxie/beego#Error">Error(v)</option><option label="ExceptMethodAppend(action)" value="github.com/astaxie/beego#ExceptMethodAppend">ExceptMethodAppend(action)</option><option label="Exception(errCode, ctx)" value="github.com/astaxie/beego#Exception">Exception(errCode, ctx)</option><option label="ExecuteTemplate(wr, name, data)" value="github.com/astaxie/beego#ExecuteTemplate">ExecuteTemplate(wr, name, data)</option><option label="ExecuteViewPathTemplate(wr, name, viewPath, data)" value="github.com/astaxie/beego#ExecuteViewPathTemplate">ExecuteViewPathTemplate(wr, name, viewPath, data)</option><option label="GetConfig(returnType, key, defaultVal)" value="github.com/astaxie/beego#GetConfig">GetConfig(returnType, key, defaultVal)</option><option label="HTML2str(html)" value="github.com/astaxie/beego#HTML2str">HTML2str(html)</option><option label="HasTemplateExt(paths)" value="github.com/astaxie/beego#HasTemplateExt">HasTemplateExt(paths)</option><option label="Htmlquote(text)" value="github.com/astaxie/beego#Htmlquote">Htmlquote(text)</option><option label="Htmlunquote(text)" value="github.com/astaxie/beego#Htmlunquote">Htmlunquote(text)</option><option label="Info(v)" value="github.com/astaxie/beego#Info">Info(v)</option><option label="Informational(v)" value="github.com/astaxie/beego#Informational">Informational(v)</option><option label="InitBeegoBeforeTest(appConfigPath)" value="github.com/astaxie/beego#InitBeegoBeforeTest">InitBeegoBeforeTest(appConfigPath)</option><option label="LoadAppConfig(adapterName, configPath)" value="github.com/astaxie/beego#LoadAppConfig">LoadAppConfig(adapterName, configPath)</option><option label="LogAccess(ctx, startTime, statusCode)" value="github.com/astaxie/beego#LogAccess">LogAccess(ctx, startTime, statusCode)</option><option label="MapGet(arg1, arg2)" value="github.com/astaxie/beego#MapGet">MapGet(arg1, arg2)</option><option label="NotNil(a)" value="github.com/astaxie/beego#NotNil">NotNil(a)</option><option label="Notice(v)" value="github.com/astaxie/beego#Notice">Notice(v)</option><option label="ParseForm(form, obj)" value="github.com/astaxie/beego#ParseForm">ParseForm(form, obj)</option><option label="Policy(pattern, method, policy)" value="github.com/astaxie/beego#Policy">Policy(pattern, method, policy)</option><option label="RenderForm(obj)" value="github.com/astaxie/beego#RenderForm">RenderForm(obj)</option><option label="Run(params)" value="github.com/astaxie/beego#Run">Run(params)</option><option label="RunWithMiddleWares(addr, mws)" value="github.com/astaxie/beego#RunWithMiddleWares">RunWithMiddleWares(addr, mws)</option><option label="SetLevel(l)" value="github.com/astaxie/beego#SetLevel">SetLevel(l)</option><option label="SetLogFuncCall(b)" value="github.com/astaxie/beego#SetLogFuncCall">SetLogFuncCall(b)</option><option label="SetLogger(adaptername, config)" value="github.com/astaxie/beego#SetLogger">SetLogger(adaptername, config)</option><option label="SetTemplateFSFunc(fnt)" value="github.com/astaxie/beego#SetTemplateFSFunc">SetTemplateFSFunc(fnt)</option><option label="Str2html(raw)" value="github.com/astaxie/beego#Str2html">Str2html(raw)</option><option label="Substr(s, start, length)" value="github.com/astaxie/beego#Substr">Substr(s, start, length)</option><option label="TestBeegoInit(ap)" value="github.com/astaxie/beego#TestBeegoInit">TestBeegoInit(ap)</option><option label="Trace(v)" value="github.com/astaxie/beego#Trace">Trace(v)</option><option label="URLFor(endpoint, values)" value="github.com/astaxie/beego#URLFor">URLFor(endpoint, values)</option><option label="Walk(fs, root, walkFn)" value="github.com/astaxie/beego#Walk">Walk(fs, root, walkFn)</option><option label="Warn(v)" value="github.com/astaxie/beego#Warn">Warn(v)</option><option label="Warning(v)" value="github.com/astaxie/beego#Warning">Warning(v)</option></optgroup><optgroup label="Types"><option label="type App" value="github.com/astaxie/beego#App">type App</option><option label="type Config" value="github.com/astaxie/beego#Config">type Config</option><option label="type Controller" value="github.com/astaxie/beego#Controller">type Controller</option><option label="type ControllerComments" value="github.com/astaxie/beego#ControllerComments">type ControllerComments</option><option label="type ControllerCommentsSlice" value="github.com/astaxie/beego#ControllerCommentsSlice">type ControllerCommentsSlice</option><option label="type ControllerFilter" value="github.com/astaxie/beego#ControllerFilter">type ControllerFilter</option><option label="type ControllerFilterComments" value="github.com/astaxie/beego#ControllerFilterComments">type ControllerFilterComments</option><option label="type ControllerImportComments" value="github.com/astaxie/beego#ControllerImportComments">type ControllerImportComments</option><option label="type ControllerInfo" value="github.com/astaxie/beego#ControllerInfo">type ControllerInfo</option><option label="type ControllerInterface" value="github.com/astaxie/beego#ControllerInterface">type ControllerInterface</option><option label="type ControllerRegister" value="github.com/astaxie/beego#ControllerRegister">type ControllerRegister</option><option label="type FileSystem" value="github.com/astaxie/beego#FileSystem">type FileSystem</option><option label="type FilterFunc" value="github.com/astaxie/beego#FilterFunc">type FilterFunc</option><option label="type FilterHandler" value="github.com/astaxie/beego#FilterHandler">type FilterHandler</option><option label="type FilterRouter" value="github.com/astaxie/beego#FilterRouter">type FilterRouter</option><option label="type FlashData" value="github.com/astaxie/beego#FlashData">type FlashData</option><option label="type LinkNamespace" value="github.com/astaxie/beego#LinkNamespace">type LinkNamespace</option><option label="type Listen" value="github.com/astaxie/beego#Listen">type Listen</option><option label="type LogConfig" value="github.com/astaxie/beego#LogConfig">type LogConfig</option><option label="type M" value="github.com/astaxie/beego#M">type M</option><option label="type MiddleWare" value="github.com/astaxie/beego#MiddleWare">type MiddleWare</option><option label="type Namespace" value="github.com/astaxie/beego#Namespace">type Namespace</option><option label="type PolicyFunc" value="github.com/astaxie/beego#PolicyFunc">type PolicyFunc</option><option label="type SessionConfig" value="github.com/astaxie/beego#SessionConfig">type SessionConfig</option><option label="type Tree" value="github.com/astaxie/beego#Tree">type Tree</option><option label="type WebConfig" value="github.com/astaxie/beego#WebConfig">type WebConfig</option></optgroup><optgroup label="type App"><option label="AddTemplateEngine(extension, fn)" value="github.com/astaxie/beego#AddTemplateEngine">AddTemplateEngine(extension, fn)</option><option label="Any(rootpath, f)" value="github.com/astaxie/beego#Any">Any(rootpath, f)</option><option label="AutoPrefix(prefix, c)" value="github.com/astaxie/beego#AutoPrefix">AutoPrefix(prefix, c)</option><option label="AutoRouter(c)" value="github.com/astaxie/beego#AutoRouter">AutoRouter(c)</option><option label="DelStaticPath(url)" value="github.com/astaxie/beego#DelStaticPath">DelStaticPath(url)</option><option label="Delete(rootpath, f)" value="github.com/astaxie/beego#Delete">Delete(rootpath, f)</option><option label="ErrorController(c)" value="github.com/astaxie/beego#ErrorController">ErrorController(c)</option><option label="ErrorHandler(code, h)" value="github.com/astaxie/beego#ErrorHandler">ErrorHandler(code, h)</option><option label="Get(rootpath, f)" value="github.com/astaxie/beego#Get">Get(rootpath, f)</option><option label="Handler(rootpath, h, options)" value="github.com/astaxie/beego#Handler">Handler(rootpath, h, options)</option><option label="Head(rootpath, f)" value="github.com/astaxie/beego#Head">Head(rootpath, f)</option><option label="Include(cList)" value="github.com/astaxie/beego#Include">Include(cList)</option><option label="InsertFilter(pattern, pos, filter, params)" value="github.com/astaxie/beego#InsertFilter">InsertFilter(pattern, pos, filter, params)</option><option label="NewApp()" value="github.com/astaxie/beego#NewApp">NewApp()</option><option label="Options(rootpath, f)" value="github.com/astaxie/beego#Options">Options(rootpath, f)</option><option label="Patch(rootpath, f)" value="github.com/astaxie/beego#Patch">Patch(rootpath, f)</option><option label="Post(rootpath, f)" value="github.com/astaxie/beego#Post">Post(rootpath, f)</option><option label="Put(rootpath, f)" value="github.com/astaxie/beego#Put">Put(rootpath, f)</option><option label="RESTRouter(rootpath, c)" value="github.com/astaxie/beego#RESTRouter">RESTRouter(rootpath, c)</option><option label="Router(rootpath, c, mappingMethods)" value="github.com/astaxie/beego#Router">Router(rootpath, c, mappingMethods)</option><option label="SetStaticPath(url, path)" value="github.com/astaxie/beego#SetStaticPath">SetStaticPath(url, path)</option><option label="SetViewsPath(path)" value="github.com/astaxie/beego#SetViewsPath">SetViewsPath(path)</option><option label="UnregisterFixedRoute(fixedRoute, method)" value="github.com/astaxie/beego#UnregisterFixedRoute">UnregisterFixedRoute(fixedRoute, method)</option><option label="(app) Run(mws)" value="github.com/astaxie/beego#App.Run">(app) Run(mws)</option></optgroup><optgroup label="type Controller"><option label="(c) Abort(code)" value="github.com/astaxie/beego#Controller.Abort">(c) Abort(code)</option><option label="(c) CheckXSRFCookie()" value="github.com/astaxie/beego#Controller.CheckXSRFCookie">(c) CheckXSRFCookie()</option><option label="(c) CustomAbort(status, body)" value="github.com/astaxie/beego#Controller.CustomAbort">(c) CustomAbort(status, body)</option><option label="(c) DelSession(name)" value="github.com/astaxie/beego#Controller.DelSession">(c) DelSession(name)</option><option label="(c) Delete()" value="github.com/astaxie/beego#Controller.Delete">(c) Delete()</option><option label="(c) DestroySession()" value="github.com/astaxie/beego#Controller.DestroySession">(c) DestroySession()</option><option label="(c) Finish()" value="github.com/astaxie/beego#Controller.Finish">(c) Finish()</option><option label="(c) Get()" value="github.com/astaxie/beego#Controller.Get">(c) Get()</option><option label="(c) GetBool(key, def)" value="github.com/astaxie/beego#Controller.GetBool">(c) GetBool(key, def)</option><option label="(c) GetControllerAndAction()" value="github.com/astaxie/beego#Controller.GetControllerAndAction">(c) GetControllerAndAction()</option><option label="(c) GetFile(key)" value="github.com/astaxie/beego#Controller.GetFile">(c) GetFile(key)</option><option label="(c) GetFiles(key)" value="github.com/astaxie/beego#Controller.GetFiles">(c) GetFiles(key)</option><option label="(c) GetFloat(key, def)" value="github.com/astaxie/beego#Controller.GetFloat">(c) GetFloat(key, def)</option><option label="(c) GetInt(key, def)" value="github.com/astaxie/beego#Controller.GetInt">(c) GetInt(key, def)</option><option label="(c) GetInt16(key, def)" value="github.com/astaxie/beego#Controller.GetInt16">(c) GetInt16(key, def)</option><option label="(c) GetInt32(key, def)" value="github.com/astaxie/beego#Controller.GetInt32">(c) GetInt32(key, def)</option><option label="(c) GetInt64(key, def)" value="github.com/astaxie/beego#Controller.GetInt64">(c) GetInt64(key, def)</option><option label="(c) GetInt8(key, def)" value="github.com/astaxie/beego#Controller.GetInt8">(c) GetInt8(key, def)</option><option label="(c) GetSecureCookie(Secret, key)" value="github.com/astaxie/beego#Controller.GetSecureCookie">(c) GetSecureCookie(Secret, key)</option><option label="(c) GetSession(name)" value="github.com/astaxie/beego#Controller.GetSession">(c) GetSession(name)</option><option label="(c) GetString(key, def)" value="github.com/astaxie/beego#Controller.GetString">(c) GetString(key, def)</option><option label="(c) GetStrings(key, def)" value="github.com/astaxie/beego#Controller.GetStrings">(c) GetStrings(key, def)</option><option label="(c) GetUint16(key, def)" value="github.com/astaxie/beego#Controller.GetUint16">(c) GetUint16(key, def)</option><option label="(c) GetUint32(key, def)" value="github.com/astaxie/beego#Controller.GetUint32">(c) GetUint32(key, def)</option><option label="(c) GetUint64(key, def)" value="github.com/astaxie/beego#Controller.GetUint64">(c) GetUint64(key, def)</option><option label="(c) GetUint8(key, def)" value="github.com/astaxie/beego#Controller.GetUint8">(c) GetUint8(key, def)</option><option label="(c) HandlerFunc(fnname)" value="github.com/astaxie/beego#Controller.HandlerFunc">(c) HandlerFunc(fnname)</option><option label="(c) Head()" value="github.com/astaxie/beego#Controller.Head">(c) Head()</option><option label="(c) Init(ctx, controllerName, actionName, app)" value="github.com/astaxie/beego#Controller.Init">(c) Init(ctx, controllerName, actionName, app)</option><option label="(c) Input()" value="github.com/astaxie/beego#Controller.Input">(c) Input()</option><option label="(c) IsAjax()" value="github.com/astaxie/beego#Controller.IsAjax">(c) IsAjax()</option><option label="(c) Mapping(method, fn)" value="github.com/astaxie/beego#Controller.Mapping">(c) Mapping(method, fn)</option><option label="(c) Options()" value="github.com/astaxie/beego#Controller.Options">(c) Options()</option><option label="(c) ParseForm(obj)" value="github.com/astaxie/beego#Controller.ParseForm">(c) ParseForm(obj)</option><option label="(c) Patch()" value="github.com/astaxie/beego#Controller.Patch">(c) Patch()</option><option label="(c) Post()" value="github.com/astaxie/beego#Controller.Post">(c) Post()</option><option label="(c) Prepare()" value="github.com/astaxie/beego#Controller.Prepare">(c) Prepare()</option><option label="(c) Put()" value="github.com/astaxie/beego#Controller.Put">(c) Put()</option><option label="(c) Redirect(url, code)" value="github.com/astaxie/beego#Controller.Redirect">(c) Redirect(url, code)</option><option label="(c) Render()" value="github.com/astaxie/beego#Controller.Render">(c) Render()</option><option label="(c) RenderBytes()" value="github.com/astaxie/beego#Controller.RenderBytes">(c) RenderBytes()</option><option label="(c) RenderString()" value="github.com/astaxie/beego#Controller.RenderString">(c) RenderString()</option><option label="(c) SaveToFile(fromfile, tofile)" value="github.com/astaxie/beego#Controller.SaveToFile">(c) SaveToFile(fromfile, tofile)</option><option label="(c) ServeFormatted(encoding)" value="github.com/astaxie/beego#Controller.ServeFormatted">(c) ServeFormatted(encoding)</option><option label="(c) ServeJSON(encoding)" value="github.com/astaxie/beego#Controller.ServeJSON">(c) ServeJSON(encoding)</option><option label="(c) ServeJSONP()" value="github.com/astaxie/beego#Controller.ServeJSONP">(c) ServeJSONP()</option><option label="(c) ServeXML()" value="github.com/astaxie/beego#Controller.ServeXML">(c) ServeXML()</option><option label="(c) ServeYAML()" value="github.com/astaxie/beego#Controller.ServeYAML">(c) ServeYAML()</option><option label="(c) SessionRegenerateID()" value="github.com/astaxie/beego#Controller.SessionRegenerateID">(c) SessionRegenerateID()</option><option label="(c) SetData(data)" value="github.com/astaxie/beego#Controller.SetData">(c) SetData(data)</option><option label="(c) SetSecureCookie(Secret, name, value, others)" value="github.com/astaxie/beego#Controller.SetSecureCookie">(c) SetSecureCookie(Secret, name, value, others)</option><option label="(c) SetSession(name, value)" value="github.com/astaxie/beego#Controller.SetSession">(c) SetSession(name, value)</option><option label="(c) StartSession()" value="github.com/astaxie/beego#Controller.StartSession">(c) StartSession()</option><option label="(c) StopRun()" value="github.com/astaxie/beego#Controller.StopRun">(c) StopRun()</option><option label="(c) Trace()" value="github.com/astaxie/beego#Controller.Trace">(c) Trace()</option><option label="(c) URLFor(endpoint, values)" value="github.com/astaxie/beego#Controller.URLFor">(c) URLFor(endpoint, values)</option><option label="(c) URLMapping()" value="github.com/astaxie/beego#Controller.URLMapping">(c) URLMapping()</option><option label="(c) XSRFFormHTML()" value="github.com/astaxie/beego#Controller.XSRFFormHTML">(c) XSRFFormHTML()</option><option label="(c) XSRFToken()" value="github.com/astaxie/beego#Controller.XSRFToken">(c) XSRFToken()</option></optgroup><optgroup label="type ControllerCommentsSlice"><option label="(p) Len()" value="github.com/astaxie/beego#ControllerCommentsSlice.Len">(p) Len()</option><option label="(p) Less(i, j)" value="github.com/astaxie/beego#ControllerCommentsSlice.Less">(p) Less(i, j)</option><option label="(p) Swap(i, j)" value="github.com/astaxie/beego#ControllerCommentsSlice.Swap">(p) Swap(i, j)</option></optgroup><optgroup label="type ControllerInfo"><option label="(c) GetPattern()" value="github.com/astaxie/beego#ControllerInfo.GetPattern">(c) GetPattern()</option></optgroup><optgroup label="type ControllerRegister"><option label="NewControllerRegister()" value="github.com/astaxie/beego#NewControllerRegister">NewControllerRegister()</option><option label="(p) Add(pattern, c, mappingMethods)" value="github.com/astaxie/beego#ControllerRegister.Add">(p) Add(pattern, c, mappingMethods)</option><option label="(p) AddAuto(c)" value="github.com/astaxie/beego#ControllerRegister.AddAuto">(p) AddAuto(c)</option><option label="(p) AddAutoPrefix(prefix, c)" value="github.com/astaxie/beego#ControllerRegister.AddAutoPrefix">(p) AddAutoPrefix(prefix, c)</option><option label="(p) AddMethod(method, pattern, f)" value="github.com/astaxie/beego#ControllerRegister.AddMethod">(p) AddMethod(method, pattern, f)</option><option label="(p) Any(pattern, f)" value="github.com/astaxie/beego#ControllerRegister.Any">(p) Any(pattern, f)</option><option label="(p) Delete(pattern, f)" value="github.com/astaxie/beego#ControllerRegister.Delete">(p) Delete(pattern, f)</option><option label="(p) FindPolicy(cont)" value="github.com/astaxie/beego#ControllerRegister.FindPolicy">(p) FindPolicy(cont)</option><option label="(p) FindRouter(context)" value="github.com/astaxie/beego#ControllerRegister.FindRouter">(p) FindRouter(context)</option><option label="(p) Get(pattern, f)" value="github.com/astaxie/beego#ControllerRegister.Get">(p) Get(pattern, f)</option><option label="(p) GetContext()" value="github.com/astaxie/beego#ControllerRegister.GetContext">(p) GetContext()</option><option label="(p) GiveBackContext(ctx)" value="github.com/astaxie/beego#ControllerRegister.GiveBackContext">(p) GiveBackContext(ctx)</option><option label="(p) Handler(pattern, h, options)" value="github.com/astaxie/beego#ControllerRegister.Handler">(p) Handler(pattern, h, options)</option><option label="(p) Head(pattern, f)" value="github.com/astaxie/beego#ControllerRegister.Head">(p) Head(pattern, f)</option><option label="(p) Include(cList)" value="github.com/astaxie/beego#ControllerRegister.Include">(p) Include(cList)</option><option label="(p) InsertFilter(pattern, pos, filter, params)" value="github.com/astaxie/beego#ControllerRegister.InsertFilter">(p) InsertFilter(pattern, pos, filter, params)</option><option label="(p) Options(pattern, f)" value="github.com/astaxie/beego#ControllerRegister.Options">(p) Options(pattern, f)</option><option label="(p) Patch(pattern, f)" value="github.com/astaxie/beego#ControllerRegister.Patch">(p) Patch(pattern, f)</option><option label="(p) Post(pattern, f)" value="github.com/astaxie/beego#ControllerRegister.Post">(p) Post(pattern, f)</option><option label="(p) Put(pattern, f)" value="github.com/astaxie/beego#ControllerRegister.Put">(p) Put(pattern, f)</option><option label="(p) ServeHTTP(rw, r)" value="github.com/astaxie/beego#ControllerRegister.ServeHTTP">(p) ServeHTTP(rw, r)</option><option label="(p) URLFor(endpoint, values)" value="github.com/astaxie/beego#ControllerRegister.URLFor">(p) URLFor(endpoint, values)</option></optgroup><optgroup label="type FileSystem"><option label="(d) Open(name)" value="github.com/astaxie/beego#FileSystem.Open">(d) Open(name)</option></optgroup><optgroup label="type FilterRouter"><option label="(f) ValidRouter(url, ctx)" value="github.com/astaxie/beego#FilterRouter.ValidRouter">(f) ValidRouter(url, ctx)</option></optgroup><optgroup label="type FlashData"><option label="NewFlash()" value="github.com/astaxie/beego#NewFlash">NewFlash()</option><option label="ReadFromRequest(c)" value="github.com/astaxie/beego#ReadFromRequest">ReadFromRequest(c)</option><option label="(fd) Error(msg, args)" value="github.com/astaxie/beego#FlashData.Error">(fd) Error(msg, args)</option><option label="(fd) Notice(msg, args)" value="github.com/astaxie/beego#FlashData.Notice">(fd) Notice(msg, args)</option><option label="(fd) Set(key, msg, args)" value="github.com/astaxie/beego#FlashData.Set">(fd) Set(key, msg, args)</option><option label="(fd) Store(c)" value="github.com/astaxie/beego#FlashData.Store">(fd) Store(c)</option><option label="(fd) Success(msg, args)" value="github.com/astaxie/beego#FlashData.Success">(fd) Success(msg, args)</option><option label="(fd) Warning(msg, args)" value="github.com/astaxie/beego#FlashData.Warning">(fd) Warning(msg, args)</option></optgroup><optgroup label="type LinkNamespace"><option label="NSAfter(filterList)" value="github.com/astaxie/beego#NSAfter">NSAfter(filterList)</option><option label="NSAny(rootpath, f)" value="github.com/astaxie/beego#NSAny">NSAny(rootpath, f)</option><option label="NSAutoPrefix(prefix, c)" value="github.com/astaxie/beego#NSAutoPrefix">NSAutoPrefix(prefix, c)</option><option label="NSAutoRouter(c)" value="github.com/astaxie/beego#NSAutoRouter">NSAutoRouter(c)</option><option label="NSBefore(filterList)" value="github.com/astaxie/beego#NSBefore">NSBefore(filterList)</option><option label="NSCond(cond)" value="github.com/astaxie/beego#NSCond">NSCond(cond)</option><option label="NSDelete(rootpath, f)" value="github.com/astaxie/beego#NSDelete">NSDelete(rootpath, f)</option><option label="NSGet(rootpath, f)" value="github.com/astaxie/beego#NSGet">NSGet(rootpath, f)</option><option label="NSHandler(rootpath, h)" value="github.com/astaxie/beego#NSHandler">NSHandler(rootpath, h)</option><option label="NSHead(rootpath, f)" value="github.com/astaxie/beego#NSHead">NSHead(rootpath, f)</option><option label="NSInclude(cList)" value="github.com/astaxie/beego#NSInclude">NSInclude(cList)</option><option label="NSNamespace(prefix, params)" value="github.com/astaxie/beego#NSNamespace">NSNamespace(prefix, params)</option><option label="NSOptions(rootpath, f)" value="github.com/astaxie/beego#NSOptions">NSOptions(rootpath, f)</option><option label="NSPatch(rootpath, f)" value="github.com/astaxie/beego#NSPatch">NSPatch(rootpath, f)</option><option label="NSPost(rootpath, f)" value="github.com/astaxie/beego#NSPost">NSPost(rootpath, f)</option><option label="NSPut(rootpath, f)" value="github.com/astaxie/beego#NSPut">NSPut(rootpath, f)</option><option label="NSRouter(rootpath, c, mappingMethods)" value="github.com/astaxie/beego#NSRouter">NSRouter(rootpath, c, mappingMethods)</option></optgroup><optgroup label="type M"><option label="PrintTree()" value="github.com/astaxie/beego#PrintTree">PrintTree()</option></optgroup><optgroup label="type Namespace"><option label="NewNamespace(prefix, params)" value="github.com/astaxie/beego#NewNamespace">NewNamespace(prefix, params)</option><option label="(n) Any(rootpath, f)" value="github.com/astaxie/beego#Namespace.Any">(n) Any(rootpath, f)</option><option label="(n) AutoPrefix(prefix, c)" value="github.com/astaxie/beego#Namespace.AutoPrefix">(n) AutoPrefix(prefix, c)</option><option label="(n) AutoRouter(c)" value="github.com/astaxie/beego#Namespace.AutoRouter">(n) AutoRouter(c)</option><option label="(n) Cond(cond)" value="github.com/astaxie/beego#Namespace.Cond">(n) Cond(cond)</option><option label="(n) Delete(rootpath, f)" value="github.com/astaxie/beego#Namespace.Delete">(n) Delete(rootpath, f)</option><option label="(n) Filter(action, filter)" value="github.com/astaxie/beego#Namespace.Filter">(n) Filter(action, filter)</option><option label="(n) Get(rootpath, f)" value="github.com/astaxie/beego#Namespace.Get">(n) Get(rootpath, f)</option><option label="(n) Handler(rootpath, h)" value="github.com/astaxie/beego#Namespace.Handler">(n) Handler(rootpath, h)</option><option label="(n) Head(rootpath, f)" value="github.com/astaxie/beego#Namespace.Head">(n) Head(rootpath, f)</option><option label="(n) Include(cList)" value="github.com/astaxie/beego#Namespace.Include">(n) Include(cList)</option><option label="(n) Namespace(ns)" value="github.com/astaxie/beego#Namespace.Namespace">(n) Namespace(ns)</option><option label="(n) Options(rootpath, f)" value="github.com/astaxie/beego#Namespace.Options">(n) Options(rootpath, f)</option><option label="(n) Patch(rootpath, f)" value="github.com/astaxie/beego#Namespace.Patch">(n) Patch(rootpath, f)</option><option label="(n) Post(rootpath, f)" value="github.com/astaxie/beego#Namespace.Post">(n) Post(rootpath, f)</option><option label="(n) Put(rootpath, f)" value="github.com/astaxie/beego#Namespace.Put">(n) Put(rootpath, f)</option><option label="(n) Router(rootpath, c, mappingMethods)" value="github.com/astaxie/beego#Namespace.Router">(n) Router(rootpath, c, mappingMethods)</option></optgroup><optgroup label="type Tree"><option label="NewTree()" value="github.com/astaxie/beego#NewTree">NewTree()</option><option label="(t) AddRouter(pattern, runObject)" value="github.com/astaxie/beego#Tree.AddRouter">(t) AddRouter(pattern, runObject)</option><option label="(t) AddTree(prefix, tree)" value="github.com/astaxie/beego#Tree.AddTree">(t) AddTree(prefix, tree)</option><option label="(t) Match(pattern, ctx)" value="github.com/astaxie/beego#Tree.Match">(t) Match(pattern, ctx)</option></optgroup></select></label>
  </div>
</nav>
    <article class="go-Main-article js-mainContent">
  <div class="UnitDetails" data-test-id="UnitDetails" style="display: block;">
    <div class="UnitDetails-content js-unitDetailsContent" data-test-id="UnitDetails-content">
      
        
  <div class="UnitReadme js-readme UnitReadme--toggle UnitReadme--expanded">
    <h2 class="UnitReadme-title" id="section-readme">
      <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/chrome_reader_mode_gm_grey_24dp.svg" alt="">
      README
      <a class="UnitReadme-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#section-readme" title="Go to Readme" aria-label="Go to Readme">¶</a>
    </h2>
    
      <div class="UnitReadme-content" data-test-id="Unit-readmeContent">
        <div class="Overview-readmeContent js-readmeContent"><h3 class="h1" id="readme-beego-build-status-godoc-foundation-go-report-card">Beego <a href="https://travis-ci.org/astaxie/beego" rel="nofollow"><img src="./beego package - github.com_astaxie_beego - Go Packages_files/unknown.svg" alt="Build Status"></a> <a href="http://godoc.org/github.com/astaxie/beego" rel="nofollow"><img src="./beego package - github.com_astaxie_beego - Go Packages_files/beego" alt="GoDoc"></a> <a href="http://golangfoundation.org/" rel="nofollow"><img src="./beego package - github.com_astaxie_beego - Go Packages_files/Golang-Foundation-green.svg" alt="Foundation"></a> <a href="https://goreportcard.com/report/github.com/astaxie/beego" rel="nofollow"><img src="./beego package - github.com_astaxie_beego - Go Packages_files/beego(1)" alt="Go Report Card"></a></h3>
<p>beego is used for rapid development of RESTful APIs, web apps and backend services in Go.
It is inspired by Tornado, Sinatra and Flask. beego has some Go-specific features such as interfaces and struct embedding.</p>
<div role="heading" aria-level="6" id="readme-more-info-at-beego-me">More info at <a href="http://beego.me/" rel="nofollow">beego.me</a>.</div>
<h4 class="h2" id="readme-quick-start">Quick Start</h4>
<h6 class="h4" id="readme-create-hello-directory-cd-hello-directory">Create <code>hello</code> directory, cd <code>hello</code> directory</h6>
<pre><code>mkdir hello
cd hello
</code></pre>
<h6 class="h4" id="readme-init-module">Init module</h6>
<pre><code>go mod init
</code></pre>
<h6 class="h4" id="readme-download-and-install">Download and install</h6>
<pre><code>go get github.com/astaxie/beego
</code></pre>
<h6 class="h4" id="readme-create-file-hello-go">Create file <code>hello.go</code></h6>
<pre><code>package main

import "github.com/astaxie/beego"

func main(){
    beego.Run()
}
</code></pre>
<h6 class="h4" id="readme-build-and-run">Build and run</h6>
<pre><code>go build hello.go
./hello
</code></pre>
<h6 class="h4" id="readme-go-to-http-localhost-8080">Go to <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080</a></h6>
<p>Congratulations! You've just built your first <strong>beego</strong> app.</p>
<div role="heading" aria-level="6" id="readme-please-see-documentation-for-more">Please see <a href="http://beego.me/docs" rel="nofollow">Documentation</a> for more.</div>
<div role="heading" aria-level="6" id="readme-beego-example"><a href="https://github.com/beego-dev/beego-example" rel="nofollow">beego-example</a></div>
<h4 class="h2" id="readme-features">Features</h4>
<ul>
<li>RESTful support</li>
<li>MVC architecture</li>
<li>Modularity</li>
<li>Auto API documents</li>
<li>Annotation router</li>
<li>Namespace</li>
<li>Powerful development tools</li>
<li>Full stack for Web &amp; API</li>
</ul>
<h4 class="h2" id="readme-documentation">Documentation</h4>
<ul>
<li><a href="http://beego.me/docs/intro/" rel="nofollow">English</a></li>
<li><a href="http://beego.me/docs/intro/" rel="nofollow">中文文档</a></li>
<li><a href="http://beego.me/docs/intro/" rel="nofollow">Русский</a></li>
</ul>
<h4 class="h2" id="readme-community">Community</h4>
<ul>
<li><a href="http://beego.me/community" rel="nofollow">http://beego.me/community</a></li>
<li>Welcome to join us in Slack: <a href="https://beego.slack.com/" rel="nofollow">https://beego.slack.com</a>, you can get invited from <a href="https://github.com/beego/beedoc/issues/232" rel="nofollow">here</a></li>
<li>QQ Group Group ID:523992905</li>
</ul>
<h4 class="h2" id="readme-license">License</h4>
<p>beego source code is licensed under the Apache Licence, Version 2.0
(<a href="http://www.apache.org/licenses/LICENSE-2.0.html" rel="nofollow">http://www.apache.org/licenses/LICENSE-2.0.html</a>).</p>
</div>
      </div>
      <button class="UnitReadme-expandLink js-readmeExpand" data-test-id="readme-expand" data-gtmc="readme button" aria-label="Expand Readme">Expand ▾</button>
      <button class="UnitReadme-collapseLink js-readmeCollapse" data-test-id="readme-collapse" data-gtmc="readme button" aria-label="Expand Readme">Collapse ▴</button>
    
  </div>

      
      
        
          
  <div class="UnitDoc">
    <h2 class="UnitDoc-title" id="section-documentation">
      <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/code_gm_grey_24dp.svg" alt="">
      Documentation
      <a class="UnitDoc-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#section-documentation" title="Go to Documentation" aria-label="Go to Documentation">¶</a>
    </h2>
    
  
    
  

    <div class="Documentation js-documentation">
      
        

<div class="Documentation-content js-docContent"> <section class="Documentation-overview">
    <h3 tabindex="-1" id="pkg-overview" class="Documentation-overviewHeader">Overview <a href="https://pkg.go.dev/github.com/astaxie/beego#pkg-overview" title="Go to Overview" aria-label="Go to Overview">¶</a></h3>

<p>Package beego provide a MVC framework
beego: an open-source, high-performance, modular, full-stack web framework
</p><p>It is used for rapid development of RESTful APIs, web apps and backend services in Go.
beego is inspired by Tornado, Sinatra and Flask with the added benefit of some Go-specific features such as interfaces and struct embedding.
</p><pre>package main
import "github.com/astaxie/beego"

func main() {
 beego.Run()
}
</pre><p>more information: <a href="http://beego.me/">http://beego.me</a>
</p>
</section><section class="Documentation-index">
    <h3 id="pkg-index" class="Documentation-indexHeader">Index <a href="https://pkg.go.dev/github.com/astaxie/beego#pkg-index" title="Go to Index" aria-label="Go to Index">¶</a></h3>

<ul class="Documentation-indexList">
<li class="Documentation-indexConstants"><a href="https://pkg.go.dev/github.com/astaxie/beego#pkg-constants">Constants</a></li>
<li class="Documentation-indexVariables"><a href="https://pkg.go.dev/github.com/astaxie/beego#pkg-variables">Variables</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#AddAPPStartHook">func AddAPPStartHook(hf ...hookfunc)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#AddFuncMap">func AddFuncMap(key string, fn interface{}) error</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#AddNamespace">func AddNamespace(nl ...*Namespace)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#AddTemplateExt">func AddTemplateExt(ext string)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#AddViewPath">func AddViewPath(viewPath string) error</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Alert">func Alert(v ...interface{})</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#AssetsCSS">func AssetsCSS(text string) template.HTML</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#AssetsJs">func AssetsJs(text string) template.HTML</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#BuildTemplate">func BuildTemplate(dir string, files ...string) error</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Compare">func Compare(a, b interface{}) (equal bool)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#CompareNot">func CompareNot(a, b interface{}) (equal bool)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Critical">func Critical(v ...interface{})</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Date">func Date(t time.Time, format string) string</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#DateFormat">func DateFormat(t time.Time, layout string) (datestring string)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#DateParse">func DateParse(dateString, format string) (time.Time, error)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Debug">func Debug(v ...interface{})</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Emergency">func Emergency(v ...interface{})</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Error">func Error(v ...interface{})</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#ExceptMethodAppend">func ExceptMethodAppend(action string)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Exception">func Exception(errCode uint64, ctx *context.Context)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#ExecuteTemplate">func ExecuteTemplate(wr io.Writer, name string, data interface{}) error</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#ExecuteViewPathTemplate">func ExecuteViewPathTemplate(wr io.Writer, name string, viewPath string, data interface{}) error</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#GetConfig">func GetConfig(returnType, key string, defaultVal interface{}) (value interface{}, err error)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#HTML2str">func HTML2str(html string) string</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#HasTemplateExt">func HasTemplateExt(paths string) bool</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Htmlquote">func Htmlquote(text string) string</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Htmlunquote">func Htmlunquote(text string) string</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Info">func Info(v ...interface{})</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Informational">func Informational(v ...interface{})</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#InitBeegoBeforeTest">func InitBeegoBeforeTest(appConfigPath string)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#LoadAppConfig">func LoadAppConfig(adapterName, configPath string) error</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#LogAccess">func LogAccess(ctx *beecontext.Context, startTime *time.Time, statusCode int)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#MapGet">func MapGet(arg1 interface{}, arg2 ...interface{}) (interface{}, error)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#NotNil">func NotNil(a interface{}) (isNil bool)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Notice">func Notice(v ...interface{})</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#ParseForm">func ParseForm(form url.Values, obj interface{}) error</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Policy">func Policy(pattern, method string, policy ...PolicyFunc)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#RenderForm">func RenderForm(obj interface{}) template.HTML</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Run">func Run(params ...string)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#RunWithMiddleWares">func RunWithMiddleWares(addr string, mws ...MiddleWare)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#SetLevel">func SetLevel(l int)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#SetLogFuncCall">func SetLogFuncCall(b bool)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#SetLogger">func SetLogger(adaptername string, config string) error</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#SetTemplateFSFunc">func SetTemplateFSFunc(fnt templateFSFunc)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Str2html">func Str2html(raw string) template.HTML</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Substr">func Substr(s string, start, length int) string</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#TestBeegoInit">func TestBeegoInit(ap string)</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Trace">func Trace(v ...interface{})</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#URLFor">func URLFor(endpoint string, values ...interface{}) string</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Walk">func Walk(fs http.FileSystem, root string, walkFn filepath.WalkFunc) error</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Warn">func Warn(v ...interface{})</a></li>
<li class="Documentation-indexFunction">
        <a href="https://pkg.go.dev/github.com/astaxie/beego#Warning">func Warning(v ...interface{})</a></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#App">type App</a></li>
<li><ul class="Documentation-indexTypeFunctions">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#AddTemplateEngine">func AddTemplateEngine(extension string, fn templatePreProcessor) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Any">func Any(rootpath string, f FilterFunc) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#AutoPrefix">func AutoPrefix(prefix string, c ControllerInterface) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#AutoRouter">func AutoRouter(c ControllerInterface) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#DelStaticPath">func DelStaticPath(url string) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Delete">func Delete(rootpath string, f FilterFunc) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ErrorController">func ErrorController(c ControllerInterface) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ErrorHandler">func ErrorHandler(code string, h http.HandlerFunc) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Get">func Get(rootpath string, f FilterFunc) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Handler">func Handler(rootpath string, h http.Handler, options ...interface{}) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Head">func Head(rootpath string, f FilterFunc) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Include">func Include(cList ...ControllerInterface) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#InsertFilter">func InsertFilter(pattern string, pos int, filter FilterFunc, params ...bool) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NewApp">func NewApp() *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Options">func Options(rootpath string, f FilterFunc) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Patch">func Patch(rootpath string, f FilterFunc) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Post">func Post(rootpath string, f FilterFunc) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Put">func Put(rootpath string, f FilterFunc) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#RESTRouter">func RESTRouter(rootpath string, c ControllerInterface) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Router">func Router(rootpath string, c ControllerInterface, mappingMethods ...string) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#SetStaticPath">func SetStaticPath(url string, path string) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#SetViewsPath">func SetViewsPath(path string) *App</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#UnregisterFixedRoute">func UnregisterFixedRoute(fixedRoute string, method string) *App</a></li>
</ul></li>
<li><ul class="Documentation-indexTypeMethods">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#App.Run">func (app *App) Run(mws ...MiddleWare)</a></li>
</ul></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#Config">type Config</a></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">type Controller</a></li>
<li><ul class="Documentation-indexTypeMethods">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Abort">func (c *Controller) Abort(code string)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.CheckXSRFCookie">func (c *Controller) CheckXSRFCookie() bool</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.CustomAbort">func (c *Controller) CustomAbort(status int, body string)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.DelSession">func (c *Controller) DelSession(name interface{})</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Delete">func (c *Controller) Delete()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.DestroySession">func (c *Controller) DestroySession()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Finish">func (c *Controller) Finish()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Get">func (c *Controller) Get()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetBool">func (c *Controller) GetBool(key string, def ...bool) (bool, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetControllerAndAction">func (c *Controller) GetControllerAndAction() (string, string)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetFile">func (c *Controller) GetFile(key string) (multipart.File, *multipart.FileHeader, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetFiles">func (c *Controller) GetFiles(key string) ([]*multipart.FileHeader, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetFloat">func (c *Controller) GetFloat(key string, def ...float64) (float64, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt">func (c *Controller) GetInt(key string, def ...int) (int, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt16">func (c *Controller) GetInt16(key string, def ...int16) (int16, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt32">func (c *Controller) GetInt32(key string, def ...int32) (int32, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt64">func (c *Controller) GetInt64(key string, def ...int64) (int64, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt8">func (c *Controller) GetInt8(key string, def ...int8) (int8, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetSecureCookie">func (c *Controller) GetSecureCookie(Secret, key string) (string, bool)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetSession">func (c *Controller) GetSession(name interface{}) interface{}</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetString">func (c *Controller) GetString(key string, def ...string) string</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetStrings">func (c *Controller) GetStrings(key string, def ...[]string) []string</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetUint16">func (c *Controller) GetUint16(key string, def ...uint16) (uint16, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetUint32">func (c *Controller) GetUint32(key string, def ...uint32) (uint32, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetUint64">func (c *Controller) GetUint64(key string, def ...uint64) (uint64, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetUint8">func (c *Controller) GetUint8(key string, def ...uint8) (uint8, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.HandlerFunc">func (c *Controller) HandlerFunc(fnname string) bool</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Head">func (c *Controller) Head()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Init">func (c *Controller) Init(ctx *context.Context, controllerName, actionName string, app interface{})</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Input">func (c *Controller) Input() url.Values</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.IsAjax">func (c *Controller) IsAjax() bool</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Mapping">func (c *Controller) Mapping(method string, fn func())</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Options">func (c *Controller) Options()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ParseForm">func (c *Controller) ParseForm(obj interface{}) error</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Patch">func (c *Controller) Patch()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Post">func (c *Controller) Post()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Prepare">func (c *Controller) Prepare()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Put">func (c *Controller) Put()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Redirect">func (c *Controller) Redirect(url string, code int)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Render">func (c *Controller) Render() error</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.RenderBytes">func (c *Controller) RenderBytes() ([]byte, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.RenderString">func (c *Controller) RenderString() (string, error)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SaveToFile">func (c *Controller) SaveToFile(fromfile, tofile string) error</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeFormatted">func (c *Controller) ServeFormatted(encoding ...bool)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeJSON">func (c *Controller) ServeJSON(encoding ...bool)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeJSONP">func (c *Controller) ServeJSONP()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeXML">func (c *Controller) ServeXML()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeYAML">func (c *Controller) ServeYAML()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SessionRegenerateID">func (c *Controller) SessionRegenerateID()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SetData">func (c *Controller) SetData(data interface{})</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SetSecureCookie">func (c *Controller) SetSecureCookie(Secret, name, value string, others ...interface{})</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SetSession">func (c *Controller) SetSession(name interface{}, value interface{})</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.StartSession">func (c *Controller) StartSession() session.Store</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.StopRun">func (c *Controller) StopRun()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Trace">func (c *Controller) Trace()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.URLFor">func (c *Controller) URLFor(endpoint string, values ...interface{}) string</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.URLMapping">func (c *Controller) URLMapping()</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.XSRFFormHTML">func (c *Controller) XSRFFormHTML() string</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Controller.XSRFToken">func (c *Controller) XSRFToken() string</a></li>
</ul></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerComments">type ControllerComments</a></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice">type ControllerCommentsSlice</a></li>
<li><ul class="Documentation-indexTypeMethods">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice.Len">func (p ControllerCommentsSlice) Len() int</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice.Less">func (p ControllerCommentsSlice) Less(i, j int) bool</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice.Swap">func (p ControllerCommentsSlice) Swap(i, j int)</a></li>
</ul></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerFilter">type ControllerFilter</a></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerFilterComments">type ControllerFilterComments</a></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerImportComments">type ControllerImportComments</a></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInfo">type ControllerInfo</a></li>
<li><ul class="Documentation-indexTypeMethods">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInfo.GetPattern">func (c *ControllerInfo) GetPattern() string</a></li>
</ul></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">type ControllerInterface</a></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">type ControllerRegister</a></li>
<li><ul class="Documentation-indexTypeFunctions">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NewControllerRegister">func NewControllerRegister() *ControllerRegister</a></li>
</ul></li>
<li><ul class="Documentation-indexTypeMethods">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Add">func (p *ControllerRegister) Add(pattern string, c ControllerInterface, mappingMethods ...string)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.AddAuto">func (p *ControllerRegister) AddAuto(c ControllerInterface)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.AddAutoPrefix">func (p *ControllerRegister) AddAutoPrefix(prefix string, c ControllerInterface)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.AddMethod">func (p *ControllerRegister) AddMethod(method, pattern string, f FilterFunc)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Any">func (p *ControllerRegister) Any(pattern string, f FilterFunc)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Delete">func (p *ControllerRegister) Delete(pattern string, f FilterFunc)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.FindPolicy">func (p *ControllerRegister) FindPolicy(cont *context.Context) []PolicyFunc</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.FindRouter">func (p *ControllerRegister) FindRouter(context *beecontext.Context) (routerInfo *ControllerInfo, isFind bool)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Get">func (p *ControllerRegister) Get(pattern string, f FilterFunc)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.GetContext">func (p *ControllerRegister) GetContext() *beecontext.Context</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.GiveBackContext">func (p *ControllerRegister) GiveBackContext(ctx *beecontext.Context)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Handler">func (p *ControllerRegister) Handler(pattern string, h http.Handler, options ...interface{})</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Head">func (p *ControllerRegister) Head(pattern string, f FilterFunc)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Include">func (p *ControllerRegister) Include(cList ...ControllerInterface)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.InsertFilter">func (p *ControllerRegister) InsertFilter(pattern string, pos int, filter FilterFunc, params ...bool) error</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Options">func (p *ControllerRegister) Options(pattern string, f FilterFunc)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Patch">func (p *ControllerRegister) Patch(pattern string, f FilterFunc)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Post">func (p *ControllerRegister) Post(pattern string, f FilterFunc)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Put">func (p *ControllerRegister) Put(pattern string, f FilterFunc)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.ServeHTTP">func (p *ControllerRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.URLFor">func (p *ControllerRegister) URLFor(endpoint string, values ...interface{}) string</a></li>
</ul></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#FileSystem">type FileSystem</a></li>
<li><ul class="Documentation-indexTypeMethods">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#FileSystem.Open">func (d FileSystem) Open(name string) (http.File, error)</a></li>
</ul></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">type FilterFunc</a></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterHandler">type FilterHandler</a></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterRouter">type FilterRouter</a></li>
<li><ul class="Documentation-indexTypeMethods">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterRouter.ValidRouter">func (f *FilterRouter) ValidRouter(url string, ctx *context.Context) bool</a></li>
</ul></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData">type FlashData</a></li>
<li><ul class="Documentation-indexTypeFunctions">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NewFlash">func NewFlash() *FlashData</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#ReadFromRequest">func ReadFromRequest(c *Controller) *FlashData</a></li>
</ul></li>
<li><ul class="Documentation-indexTypeMethods">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Error">func (fd *FlashData) Error(msg string, args ...interface{})</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Notice">func (fd *FlashData) Notice(msg string, args ...interface{})</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Set">func (fd *FlashData) Set(key string, msg string, args ...interface{})</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Store">func (fd *FlashData) Store(c *Controller)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Success">func (fd *FlashData) Success(msg string, args ...interface{})</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Warning">func (fd *FlashData) Warning(msg string, args ...interface{})</a></li>
</ul></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">type LinkNamespace</a></li>
<li><ul class="Documentation-indexTypeFunctions">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSAfter">func NSAfter(filterList ...FilterFunc) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSAny">func NSAny(rootpath string, f FilterFunc) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSAutoPrefix">func NSAutoPrefix(prefix string, c ControllerInterface) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSAutoRouter">func NSAutoRouter(c ControllerInterface) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSBefore">func NSBefore(filterList ...FilterFunc) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSCond">func NSCond(cond namespaceCond) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSDelete">func NSDelete(rootpath string, f FilterFunc) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSGet">func NSGet(rootpath string, f FilterFunc) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSHandler">func NSHandler(rootpath string, h http.Handler) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSHead">func NSHead(rootpath string, f FilterFunc) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSInclude">func NSInclude(cList ...ControllerInterface) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSNamespace">func NSNamespace(prefix string, params ...LinkNamespace) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSOptions">func NSOptions(rootpath string, f FilterFunc) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSPatch">func NSPatch(rootpath string, f FilterFunc) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSPost">func NSPost(rootpath string, f FilterFunc) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSPut">func NSPut(rootpath string, f FilterFunc) LinkNamespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NSRouter">func NSRouter(rootpath string, c ControllerInterface, mappingMethods ...string) LinkNamespace</a></li>
</ul></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#Listen">type Listen</a></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#LogConfig">type LogConfig</a></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#M">type M</a></li>
<li><ul class="Documentation-indexTypeFunctions">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#PrintTree">func PrintTree() M</a></li>
</ul></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#MiddleWare">type MiddleWare</a></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">type Namespace</a></li>
<li><ul class="Documentation-indexTypeFunctions">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NewNamespace">func NewNamespace(prefix string, params ...LinkNamespace) *Namespace</a></li>
</ul></li>
<li><ul class="Documentation-indexTypeMethods">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Any">func (n *Namespace) Any(rootpath string, f FilterFunc) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.AutoPrefix">func (n *Namespace) AutoPrefix(prefix string, c ControllerInterface) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.AutoRouter">func (n *Namespace) AutoRouter(c ControllerInterface) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Cond">func (n *Namespace) Cond(cond namespaceCond) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Delete">func (n *Namespace) Delete(rootpath string, f FilterFunc) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Filter">func (n *Namespace) Filter(action string, filter ...FilterFunc) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Get">func (n *Namespace) Get(rootpath string, f FilterFunc) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Handler">func (n *Namespace) Handler(rootpath string, h http.Handler) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Head">func (n *Namespace) Head(rootpath string, f FilterFunc) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Include">func (n *Namespace) Include(cList ...ControllerInterface) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Namespace">func (n *Namespace) Namespace(ns ...*Namespace) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Options">func (n *Namespace) Options(rootpath string, f FilterFunc) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Patch">func (n *Namespace) Patch(rootpath string, f FilterFunc) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Post">func (n *Namespace) Post(rootpath string, f FilterFunc) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Put">func (n *Namespace) Put(rootpath string, f FilterFunc) *Namespace</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Router">func (n *Namespace) Router(rootpath string, c ControllerInterface, mappingMethods ...string) *Namespace</a></li>
</ul></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#PolicyFunc">type PolicyFunc</a></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#SessionConfig">type SessionConfig</a></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#Tree">type Tree</a></li>
<li><ul class="Documentation-indexTypeFunctions">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#NewTree">func NewTree() *Tree</a></li>
</ul></li>
<li><ul class="Documentation-indexTypeMethods">
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Tree.AddRouter">func (t *Tree) AddRouter(pattern string, runObject interface{})</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Tree.AddTree">func (t *Tree) AddTree(prefix string, tree *Tree)</a></li>
<li>
            <a href="https://pkg.go.dev/github.com/astaxie/beego#Tree.Match">func (t *Tree) Match(pattern string, ctx *context.Context) (runObject interface{})</a></li>
</ul></li>
<li class="Documentation-indexType">
          <a href="https://pkg.go.dev/github.com/astaxie/beego#WebConfig">type WebConfig</a></li>
</ul>
</section><h3 tabindex="-1" id="pkg-constants" class="Documentation-constantsHeader">Constants <a href="https://pkg.go.dev/github.com/astaxie/beego#pkg-constants" title="Go to Constants" aria-label="Go to Constants">¶</a></h3>

  <section class="Documentation-constants">
    <div class="Documentation-declaration">
      <span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/beego.go#L24">View Source</a></span>
      <pre>const (
<span id="VERSION" data-kind="constant">	<span class="comment">// VERSION represent beego web framework version.</span>
</span>	VERSION = "1.12.3"

<span id="DEV" data-kind="constant">	<span class="comment">// DEV is for develop</span>
</span>	DEV = "dev"
<span id="PROD" data-kind="constant">	<span class="comment">// PROD is for production</span>
</span>	PROD = "prod"
)</pre>
    </div>
  

    <div class="Documentation-declaration">
      <span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L25">View Source</a></span>
      <pre>const (
<span id="LevelEmergency" data-kind="constant">	LevelEmergency = <a href="https://pkg.go.dev/builtin#iota">iota</a>
</span><span id="LevelAlert" data-kind="constant">	LevelAlert
</span><span id="LevelCritical" data-kind="constant">	LevelCritical
</span><span id="LevelError" data-kind="constant">	LevelError
</span><span id="LevelWarning" data-kind="constant">	LevelWarning
</span><span id="LevelNotice" data-kind="constant">	LevelNotice
</span><span id="LevelInformational" data-kind="constant">	LevelInformational
</span><span id="LevelDebug" data-kind="constant">	LevelDebug
</span>)</pre>
    </div>
  <p>Log levels to control the logging output.
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

    <div class="Documentation-declaration">
      <span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L38">View Source</a></span>
      <pre>const (
<span id="BeforeStatic" data-kind="constant">	BeforeStatic = <a href="https://pkg.go.dev/builtin#iota">iota</a>
</span><span id="BeforeRouter" data-kind="constant">	BeforeRouter
</span><span id="BeforeExec" data-kind="constant">	BeforeExec
</span><span id="AfterExec" data-kind="constant">	AfterExec
</span><span id="FinishRouter" data-kind="constant">	FinishRouter
</span>)</pre>
    </div>
  <p>default filter execution points
</p>
</section>

  <h3 tabindex="-1" id="pkg-variables" class="Documentation-variablesHeader">Variables <a href="https://pkg.go.dev/github.com/astaxie/beego#pkg-variables" title="Go to Variables" aria-label="Go to Variables">¶</a></h3>

  <section class="Documentation-variables">
    <div class="Documentation-declaration">
      <span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/build_info.go#L17">View Source</a></span>
      <pre>var (
<span id="BuildVersion" data-kind="variable">	BuildVersion     <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="BuildGitRevision" data-kind="variable">	BuildGitRevision <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="BuildStatus" data-kind="variable">	BuildStatus      <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="BuildTag" data-kind="variable">	BuildTag         <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="BuildTime" data-kind="variable">	BuildTime        <a href="https://pkg.go.dev/builtin#string">string</a>
</span>
<span id="GoVersion" data-kind="variable">	GoVersion <a href="https://pkg.go.dev/builtin#string">string</a>
</span>
<span id="GitBranch" data-kind="variable">	GitBranch <a href="https://pkg.go.dev/builtin#string">string</a>
</span>)</pre>
    </div>
  

    <div class="Documentation-declaration">
      <span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/config.go#L124">View Source</a></span>
      <pre>var (
<span id="BConfig" data-kind="variable">	<span class="comment">// BConfig is the default config for Application</span>
</span>	BConfig *<a href="https://pkg.go.dev/github.com/astaxie/beego#Config">Config</a>
<span id="AppConfig" data-kind="variable">	<span class="comment">// AppConfig is the instance of Config, store the config information from file</span>
</span>	AppConfig *beegoAppConfig
<span id="AppPath" data-kind="variable">	<span class="comment">// AppPath is the absolute path to the app</span>
</span>	AppPath <a href="https://pkg.go.dev/builtin#string">string</a>
<span id="GlobalSessions" data-kind="variable">	<span class="comment">// GlobalSessions is the instance for the session manager</span>
</span>	GlobalSessions *<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session">session</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session#Manager">Manager</a>

<span id="WorkPath" data-kind="variable">	<span class="comment">// WorkPath is the absolute path to project root directory</span>
</span>	WorkPath <a href="https://pkg.go.dev/builtin#string">string</a>
)</pre>
    </div>
  

    <div class="Documentation-declaration">
      <span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L36">View Source</a></span>
      <pre>var (
<span id="ErrAbort" data-kind="variable">	<span class="comment">// ErrAbort custom error when user stop request handler manually.</span>
</span>	ErrAbort = <a href="https://pkg.go.dev/errors">errors</a>.<a href="https://pkg.go.dev/errors#New">New</a>("user stop run")
<span id="GlobalControllerRouter" data-kind="variable">	<span class="comment">// GlobalControllerRouter store comments with controller. pkgpath+controller:comments</span>
</span>	GlobalControllerRouter = <a href="https://pkg.go.dev/builtin#make">make</a>(map[<a href="https://pkg.go.dev/builtin#string">string</a>][]<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerComments">ControllerComments</a>)
)</pre>
    </div>
  

    <div class="Documentation-declaration">
      <span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L38">View Source</a></span>
      <pre><span id="BeeLogger" data-kind="variable">var BeeLogger = <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/logs">logs</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/logs#GetBeeLogger">GetBeeLogger</a>()</span></pre>
    </div>
  <p>BeeLogger references the used application logger.
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

    <div class="Documentation-declaration">
      <span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/error.go#L208">View Source</a></span>
      <pre><span id="ErrorMaps" data-kind="variable">var ErrorMaps = <a href="https://pkg.go.dev/builtin#make">make</a>(map[<a href="https://pkg.go.dev/builtin#string">string</a>]*errorInfo, 10)</span></pre>
    </div>
  <p>ErrorMaps holds map of http handlers for each error string.
there is 10 kinds default error(40x and 50x)
</p>

    <div class="Documentation-declaration">
      <span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/admin.go#L55">View Source</a></span>
      <pre><span id="FilterMonitorFunc" data-kind="variable">var FilterMonitorFunc func(<a href="https://pkg.go.dev/builtin#string">string</a>, <a href="https://pkg.go.dev/builtin#string">string</a>, <a href="https://pkg.go.dev/time">time</a>.<a href="https://pkg.go.dev/time#Duration">Duration</a>, <a href="https://pkg.go.dev/builtin#string">string</a>, <a href="https://pkg.go.dev/builtin#int">int</a>) <a href="https://pkg.go.dev/builtin#bool">bool</a></span></pre>
    </div>
  <p>FilterMonitorFunc is default monitor filter when admin module is enable.
if this func returns, admin module records qps for this request by condition of this function logic.
usage:
</p><pre>func MyFilterMonitor(method, requestPath string, t time.Duration, pattern string, statusCode int) bool {
 	if method == "POST" {
		return false
 	}
 	if t.Nanoseconds() &lt; 100 {
		return false
 	}
 	if strings.HasPrefix(requestPath, "/astaxie") {
		return false
 	}
 	return true
}
beego.FilterMonitorFunc = MyFilterMonitor.
</pre>
</section>

  <h3 tabindex="-1" id="pkg-functions" class="Documentation-functionsHeader">Functions <a href="https://pkg.go.dev/github.com/astaxie/beego#pkg-functions" title="Go to Functions" aria-label="Go to Functions">¶</a></h3>

  <section class="Documentation-functions"><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="AddAPPStartHook" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/beego.go#L47">AddAPPStartHook</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#AddAPPStartHook" title="Go to AddAPPStartHook" aria-label="Go to AddAPPStartHook">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func AddAPPStartHook(hf ...hookfunc)</pre>
    </div>
  <p>AddAPPStartHook is used to register the hookfunc
The hookfuncs will run in beego.Run()
such as initiating session , starting middleware , building template, starting admin control and so on.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="AddFuncMap" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/template.go#L110">AddFuncMap</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#AddFuncMap" title="Go to AddFuncMap" aria-label="Go to AddFuncMap">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func AddFuncMap(key <a href="https://pkg.go.dev/builtin#string">string</a>, fn interface{}) <a href="https://pkg.go.dev/builtin#error">error</a></pre>
    </div>
  <p>AddFuncMap let user to register a func in the template.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="AddNamespace" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L236">AddNamespace</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#AddNamespace" title="Go to AddNamespace" aria-label="Go to AddNamespace">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func AddNamespace(nl ...*<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>)</pre>
    </div>
  <p>AddNamespace register Namespace into beego.Handler
support multi Namespace
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="AddTemplateExt" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/template.go#L156">AddTemplateExt</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#AddTemplateExt" title="Go to AddTemplateExt" aria-label="Go to AddTemplateExt">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func AddTemplateExt(ext <a href="https://pkg.go.dev/builtin#string">string</a>)</pre>
    </div>
  <p>AddTemplateExt add new extension for template.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="AddViewPath" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/template.go#L168">AddViewPath</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#AddViewPath" title="Go to AddViewPath" aria-label="Go to AddViewPath">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.8.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func AddViewPath(viewPath <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></pre>
    </div>
  <p>AddViewPath adds a new path to the supported view paths.
Can later be used by setting a controller ViewPath to this folder
will panic if called after beego.Run()
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Alert" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L66">Alert</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Alert" title="Go to Alert" aria-label="Go to Alert">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Alert(v ...interface{})</pre>
    </div>
  <p>Alert logs a message at alert level.
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="AssetsCSS" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L265">AssetsCSS</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#AssetsCSS" title="Go to AssetsCSS" aria-label="Go to AssetsCSS">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func AssetsCSS(text <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/html/template">template</a>.<a href="https://pkg.go.dev/html/template#HTML">HTML</a></pre>
    </div>
  <p>AssetsCSS returns stylesheet link tag with src string.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="AssetsJs" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L257">AssetsJs</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#AssetsJs" title="Go to AssetsJs" aria-label="Go to AssetsJs">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func AssetsJs(text <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/html/template">template</a>.<a href="https://pkg.go.dev/html/template#HTML">HTML</a></pre>
    </div>
  <p>AssetsJs returns script tag with src string.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="BuildTemplate" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/template.go#L185">BuildTemplate</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#BuildTemplate" title="Go to BuildTemplate" aria-label="Go to BuildTemplate">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func BuildTemplate(dir <a href="https://pkg.go.dev/builtin#string">string</a>, files ...<a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></pre>
    </div>
  <p>BuildTemplate will build all template files in a directory.
it makes beego can render any template file in view directory.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Compare" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L141">Compare</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Compare" title="Go to Compare" aria-label="Go to Compare">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Compare(a, b interface{}) (equal <a href="https://pkg.go.dev/builtin#bool">bool</a>)</pre>
    </div>
  <p>Compare is a quick and dirty comparison function. It will convert whatever you give it to strings and see if the two values are equal.
Whitespace is trimmed. Used by the template parser as "eq".
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="CompareNot" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L150">CompareNot</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#CompareNot" title="Go to CompareNot" aria-label="Go to CompareNot">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.3</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func CompareNot(a, b interface{}) (equal <a href="https://pkg.go.dev/builtin#bool">bool</a>)</pre>
    </div>
  <p>CompareNot !Compare
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Critical" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L72">Critical</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Critical" title="Go to Critical" aria-label="Go to Critical">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Critical(v ...interface{})</pre>
    </div>
  <p>Critical logs a message at critical level.
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Date" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L133">Date</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Date" title="Go to Date" aria-label="Go to Date">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Date(t <a href="https://pkg.go.dev/time">time</a>.<a href="https://pkg.go.dev/time#Time">Time</a>, format <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#string">string</a></pre>
    </div>
  <p>Date takes a PHP like date func to Go's time format.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="DateFormat" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L79">DateFormat</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#DateFormat" title="Go to DateFormat" aria-label="Go to DateFormat">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func DateFormat(t <a href="https://pkg.go.dev/time">time</a>.<a href="https://pkg.go.dev/time#Time">Time</a>, layout <a href="https://pkg.go.dev/builtin#string">string</a>) (datestring <a href="https://pkg.go.dev/builtin#string">string</a>)</pre>
    </div>
  <p>DateFormat takes a time and a layout string and returns a string with the formatted date. Used by the template parser as "dateformat"
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="DateParse" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L126">DateParse</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#DateParse" title="Go to DateParse" aria-label="Go to DateParse">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func DateParse(dateString, format <a href="https://pkg.go.dev/builtin#string">string</a>) (<a href="https://pkg.go.dev/time">time</a>.<a href="https://pkg.go.dev/time#Time">Time</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>DateParse Parse Date use PHP time format.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Debug" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L114">Debug</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Debug" title="Go to Debug" aria-label="Go to Debug">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Debug(v ...interface{})</pre>
    </div>
  <p>Debug logs a message at debug level.
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Emergency" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L60">Emergency</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Emergency" title="Go to Emergency" aria-label="Go to Emergency">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Emergency(v ...interface{})</pre>
    </div>
  <p>Emergency logs a message at emergency level.
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Error" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L78">Error</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Error" title="Go to Error" aria-label="Go to Error">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Error(v ...interface{})</pre>
    </div>
  <p>Error logs a message at error level.
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="ExceptMethodAppend" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L109">ExceptMethodAppend</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ExceptMethodAppend" title="Go to ExceptMethodAppend" aria-label="Go to ExceptMethodAppend">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func ExceptMethodAppend(action <a href="https://pkg.go.dev/builtin#string">string</a>)</pre>
    </div>
  <p>ExceptMethodAppend to append a slice's value into "exceptMethod", for controller's methods shouldn't reflect to AutoRouter
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Exception" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/error.go#L421">Exception</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Exception" title="Go to Exception" aria-label="Go to Exception">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.7.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Exception(errCode <a href="https://pkg.go.dev/builtin#uint64">uint64</a>, ctx *<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">context</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a>)</pre>
    </div>
  <p>Exception Write HttpStatus with errCode and Exec error handler if exist.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="ExecuteTemplate" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/template.go#L50">ExecuteTemplate</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ExecuteTemplate" title="Go to ExecuteTemplate" aria-label="Go to ExecuteTemplate">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.7.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func ExecuteTemplate(wr <a href="https://pkg.go.dev/io">io</a>.<a href="https://pkg.go.dev/io#Writer">Writer</a>, name <a href="https://pkg.go.dev/builtin#string">string</a>, data interface{}) <a href="https://pkg.go.dev/builtin#error">error</a></pre>
    </div>
  <p>ExecuteTemplate applies the template with name  to the specified data object,
writing the output to wr.
A template will be executed safely in parallel.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="ExecuteViewPathTemplate" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/template.go#L57">ExecuteViewPathTemplate</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ExecuteViewPathTemplate" title="Go to ExecuteViewPathTemplate" aria-label="Go to ExecuteViewPathTemplate">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.8.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func ExecuteViewPathTemplate(wr <a href="https://pkg.go.dev/io">io</a>.<a href="https://pkg.go.dev/io#Writer">Writer</a>, name <a href="https://pkg.go.dev/builtin#string">string</a>, viewPath <a href="https://pkg.go.dev/builtin#string">string</a>, data interface{}) <a href="https://pkg.go.dev/builtin#error">error</a></pre>
    </div>
  <p>ExecuteViewPathTemplate applies the template with name and from specific viewPath to the specified data object,
writing the output to wr.
A template will be executed safely in parallel.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="GetConfig" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L160">GetConfig</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#GetConfig" title="Go to GetConfig" aria-label="Go to GetConfig">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func GetConfig(returnType, key <a href="https://pkg.go.dev/builtin#string">string</a>, defaultVal interface{}) (value interface{}, err <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>GetConfig get the Appconfig
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="HTML2str" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L56">HTML2str</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#HTML2str" title="Go to HTML2str" aria-label="Go to HTML2str">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func HTML2str(html <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#string">string</a></pre>
    </div>
  <p>HTML2str returns escaping text convert from html.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="HasTemplateExt" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/template.go#L146">HasTemplateExt</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#HasTemplateExt" title="Go to HasTemplateExt" aria-label="Go to HasTemplateExt">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func HasTemplateExt(paths <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#bool">bool</a></pre>
    </div>
  <p>HasTemplateExt return this path contains supported template extension of beego or not.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Htmlquote" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L203">Htmlquote</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Htmlquote" title="Go to Htmlquote" aria-label="Go to Htmlquote">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Htmlquote(text <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#string">string</a></pre>
    </div>
  <p>Htmlquote returns quoted html string.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Htmlunquote" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L222">Htmlunquote</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Htmlunquote" title="Go to Htmlunquote" aria-label="Go to Htmlunquote">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Htmlunquote(text <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#string">string</a></pre>
    </div>
  <p>Htmlunquote returns unquoted html string.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Info" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L108">Info</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Info" title="Go to Info" aria-label="Go to Info">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Info(v ...interface{})</pre>
    </div>
  <p>Info compatibility alias for Warning()
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Informational" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L102">Informational</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Informational" title="Go to Informational" aria-label="Go to Informational">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Informational(v ...interface{})</pre>
    </div>
  <p>Informational logs a message at info level.
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="InitBeegoBeforeTest" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/beego.go#L117">InitBeegoBeforeTest</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#InitBeegoBeforeTest" title="Go to InitBeegoBeforeTest" aria-label="Go to InitBeegoBeforeTest">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.7.1</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func InitBeegoBeforeTest(appConfigPath <a href="https://pkg.go.dev/builtin#string">string</a>)</pre>
    </div>
  <p>InitBeegoBeforeTest is for test package init
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="LoadAppConfig" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/config.go#L404">LoadAppConfig</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#LoadAppConfig" title="Go to LoadAppConfig" aria-label="Go to LoadAppConfig">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.1</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func LoadAppConfig(adapterName, configPath <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></pre>
    </div>
  <p>LoadAppConfig allow developer to apply a config file
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="LogAccess" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L1019">LogAccess</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#LogAccess" title="Go to LogAccess" aria-label="Go to LogAccess">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.12.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func LogAccess(ctx *<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">beecontext</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a>, startTime *<a href="https://pkg.go.dev/time">time</a>.<a href="https://pkg.go.dev/time#Time">Time</a>, statusCode <a href="https://pkg.go.dev/builtin#int">int</a>)</pre>
    </div>
  <p>LogAccess logging info HTTP Access
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="MapGet" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L718">MapGet</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#MapGet" title="Go to MapGet" aria-label="Go to MapGet">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func MapGet(arg1 interface{}, arg2 ...interface{}) (interface{}, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>MapGet getting value from map by keys
usage:
</p><pre>Data["m"] = M{
    "a": 1,
    "1": map[string]float64{
        "c": 4,
    },
}
</pre><p>{{ map_get m "a" }} // return 1
{{ map_get m 1 "c" }} // return 4
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="NotNil" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L155">NotNil</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NotNil" title="Go to NotNil" aria-label="Go to NotNil">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.3</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NotNil(a interface{}) (isNil <a href="https://pkg.go.dev/builtin#bool">bool</a>)</pre>
    </div>
  <p>NotNil the same as CompareNot
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Notice" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L96">Notice</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Notice" title="Go to Notice" aria-label="Go to Notice">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Notice(v ...interface{})</pre>
    </div>
  <p>Notice logs a message at notice level.
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="ParseForm" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L414">ParseForm</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ParseForm" title="Go to ParseForm" aria-label="Go to ParseForm">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func ParseForm(form <a href="https://pkg.go.dev/net/url">url</a>.<a href="https://pkg.go.dev/net/url#Values">Values</a>, obj interface{}) <a href="https://pkg.go.dev/builtin#error">error</a></pre>
    </div>
  <p>ParseForm will parse form values to struct via tag.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Policy" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/policy.go#L75">Policy</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Policy" title="Go to Policy" aria-label="Go to Policy">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.7.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Policy(pattern, method <a href="https://pkg.go.dev/builtin#string">string</a>, policy ...<a href="https://pkg.go.dev/github.com/astaxie/beego#PolicyFunc">PolicyFunc</a>)</pre>
    </div>
  <p>Policy Register new policy in beego
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="RenderForm" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L445">RenderForm</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#RenderForm" title="Go to RenderForm" aria-label="Go to RenderForm">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func RenderForm(obj interface{}) <a href="https://pkg.go.dev/html/template">template</a>.<a href="https://pkg.go.dev/html/template#HTML">HTML</a></pre>
    </div>
  <p>RenderForm will render object to form html.
obj must be a struct pointer.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Run" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/beego.go#L56">Run</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Run" title="Go to Run" aria-label="Go to Run">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Run(params ...<a href="https://pkg.go.dev/builtin#string">string</a>)</pre>
    </div>
  <p>Run beego application.
beego.Run() default run on HttpPort
beego.Run("localhost")
beego.Run(":8089")
beego.Run("127.0.0.1:8089")
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="RunWithMiddleWares" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/beego.go#L76">RunWithMiddleWares</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#RunWithMiddleWares" title="Go to RunWithMiddleWares" aria-label="Go to RunWithMiddleWares">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.9.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func RunWithMiddleWares(addr <a href="https://pkg.go.dev/builtin#string">string</a>, mws ...<a href="https://pkg.go.dev/github.com/astaxie/beego#MiddleWare">MiddleWare</a>)</pre>
    </div>
  <p>RunWithMiddleWares Run beego application with middlewares.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="SetLevel" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L42">SetLevel</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#SetLevel" title="Go to SetLevel" aria-label="Go to SetLevel">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func SetLevel(l <a href="https://pkg.go.dev/builtin#int">int</a>)</pre>
    </div>
  <p>SetLevel sets the global log level used by the simple logger.
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="SetLogFuncCall" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L48">SetLogFuncCall</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#SetLogFuncCall" title="Go to SetLogFuncCall" aria-label="Go to SetLogFuncCall">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func SetLogFuncCall(b <a href="https://pkg.go.dev/builtin#bool">bool</a>)</pre>
    </div>
  <p>SetLogFuncCall set the CallDepth, default is 3
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="SetLogger" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L54">SetLogger</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#SetLogger" title="Go to SetLogger" aria-label="Go to SetLogger">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func SetLogger(adaptername <a href="https://pkg.go.dev/builtin#string">string</a>, config <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></pre>
    </div>
  <p>SetLogger sets a new logger.
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="SetTemplateFSFunc" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/template.go#L366">SetTemplateFSFunc</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#SetTemplateFSFunc" title="Go to SetTemplateFSFunc" aria-label="Go to SetTemplateFSFunc">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.11.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func SetTemplateFSFunc(fnt templateFSFunc)</pre>
    </div>
  <p>SetTemplateFSFunc set default filesystem function
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Str2html" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L198">Str2html</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Str2html" title="Go to Str2html" aria-label="Go to Str2html">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Str2html(raw <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/html/template">template</a>.<a href="https://pkg.go.dev/html/template#HTML">HTML</a></pre>
    </div>
  <p>Str2html Convert string to template.HTML type.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Substr" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L38">Substr</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Substr" title="Go to Substr" aria-label="Go to Substr">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Substr(s <a href="https://pkg.go.dev/builtin#string">string</a>, start, length <a href="https://pkg.go.dev/builtin#int">int</a>) <a href="https://pkg.go.dev/builtin#string">string</a></pre>
    </div>
  <p>Substr returns the substr from start to length.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="TestBeegoInit" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/beego.go#L110">TestBeegoInit</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#TestBeegoInit" title="Go to TestBeegoInit" aria-label="Go to TestBeegoInit">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func TestBeegoInit(ap <a href="https://pkg.go.dev/builtin#string">string</a>)</pre>
    </div>
  <p>TestBeegoInit is for test package init
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Trace" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L121">Trace</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Trace" title="Go to Trace" aria-label="Go to Trace">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Trace(v ...interface{})</pre>
    </div>
  <p>Trace logs a message at trace level.
compatibility alias for Warning()
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="URLFor" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go#L252">URLFor</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#URLFor" title="Go to URLFor" aria-label="Go to URLFor">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func URLFor(endpoint <a href="https://pkg.go.dev/builtin#string">string</a>, values ...interface{}) <a href="https://pkg.go.dev/builtin#string">string</a></pre>
    </div>
  <p>URLFor returns url string with another registered controller handler with params.
</p><pre>	usage:

	URLFor(".index")
	print URLFor("index")
 router /login
	print URLFor("login")
	print URLFor("login", "next","/"")
 router /profile/:username
	print UrlFor("profile", ":username","John Doe")
	result:
	/
	/login
	/login?next=/
	/user/John%20Doe

 more detail http://beego.me/docs/mvc/controller/urlbuilding.md
</pre>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Walk" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/fs.go#L19">Walk</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Walk" title="Go to Walk" aria-label="Go to Walk">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.11.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Walk(fs <a href="https://pkg.go.dev/net/http">http</a>.<a href="https://pkg.go.dev/net/http#FileSystem">FileSystem</a>, root <a href="https://pkg.go.dev/builtin#string">string</a>, walkFn <a href="https://pkg.go.dev/path/filepath">filepath</a>.<a href="https://pkg.go.dev/path/filepath#WalkFunc">WalkFunc</a>) <a href="https://pkg.go.dev/builtin#error">error</a></pre>
    </div>
  <p>Walk walks the file tree rooted at root in filesystem, calling walkFn for each file or
directory in the tree, including root. All errors that arise visiting files
and directories are filtered by walkFn.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Warn" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L90">Warn</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Warn" title="Go to Warn" aria-label="Go to Warn">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Warn(v ...interface{})</pre>
    </div>
  <p>Warn compatibility alias for Warning()
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

  

        </div><div class="Documentation-function">
	  
  
  
    <h4 tabindex="-1" id="Warning" data-kind="function" class="Documentation-functionHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/log.go#L84">Warning</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Warning" title="Go to Warning" aria-label="Go to Warning">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Warning(v ...interface{})</pre>
    </div>
  <p>Warning logs a message at warning level.
Deprecated: use github.com/astaxie/beego/logs instead.
</p>

  

        </div></section>

  <h3 tabindex="-1" id="pkg-types" class="Documentation-typesHeader">Types <a href="https://pkg.go.dev/github.com/astaxie/beego#pkg-types" title="Go to Types" aria-label="Go to Types">¶</a></h3>

  <section class="Documentation-types"><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="App" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L47">App</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#App" title="Go to App" aria-label="Go to App">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type App struct {
<span id="App.Handlers" data-kind="field">	Handlers *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>
</span><span id="App.Server" data-kind="field">	Server   *<a href="https://pkg.go.dev/net/http">http</a>.<a href="https://pkg.go.dev/net/http#Server">Server</a>
</span>}</pre>
    </div>
  <p>App defines beego application with a new PatternServeMux.
</p>
<div class="Documentation-typeVariable">
    <div class="Documentation-declaration">
      <pre>var (
<span id="BeeApp" data-kind="variable">	<span class="comment">// BeeApp is an application instance</span>
</span>	BeeApp *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a>
)</pre>
    </div>
  
</div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="AddTemplateEngine" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/template.go#L402">AddTemplateEngine</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#AddTemplateEngine" title="Go to AddTemplateEngine" aria-label="Go to AddTemplateEngine">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.7.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func AddTemplateEngine(extension <a href="https://pkg.go.dev/builtin#string">string</a>, fn templatePreProcessor) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>AddTemplateEngine add a new templatePreProcessor which support extension
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="Any" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L474">Any</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Any" title="Go to Any" aria-label="Go to Any">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Any(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>Any used to register router for all methods
usage:
</p><pre>beego.Any("/api", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="AutoPrefix" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L394">AutoPrefix</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#AutoPrefix" title="Go to AutoPrefix" aria-label="Go to AutoPrefix">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func AutoPrefix(prefix <a href="https://pkg.go.dev/builtin#string">string</a>, c <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>AutoPrefix adds controller handler to BeeApp with prefix.
it's same to App.AutoRouterWithPrefix.
if beego.AutoPrefix("/admin",&amp;MainContorlller{}) and MainController has methods List and Page,
visit the url /admin/main/list to exec List function or /admin/main/page to exec Page function.
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="AutoRouter" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L385">AutoRouter</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#AutoRouter" title="Go to AutoRouter" aria-label="Go to AutoRouter">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func AutoRouter(c <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>AutoRouter adds defined controller handler to BeeApp.
it's same to App.AutoRouter.
if beego.AddAuto(&amp;MainContorlller{}) and MainController has methods List and Page,
visit the url /main/list to exec List function or /main/page to exec Page function.
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="DelStaticPath" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/template.go#L390">DelStaticPath</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#DelStaticPath" title="Go to DelStaticPath" aria-label="Go to DelStaticPath">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func DelStaticPath(url <a href="https://pkg.go.dev/builtin#string">string</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>DelStaticPath removes the static folder setting in this url pattern in beego application.
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="Delete" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L424">Delete</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Delete" title="Go to Delete" aria-label="Go to Delete">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Delete(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>Delete used to register router for Delete method
usage:
</p><pre>beego.Delete("/api", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="ErrorController" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/error.go#L402">ErrorController</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ErrorController" title="Go to ErrorController" aria-label="Go to ErrorController">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.3</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func ErrorController(c <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>ErrorController registers ControllerInterface to each http err code string.
usage:
</p><pre>beego.ErrorController(&amp;controllers.ErrorController{})
</pre>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="ErrorHandler" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/error.go#L390">ErrorHandler</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ErrorHandler" title="Go to ErrorHandler" aria-label="Go to ErrorHandler">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func ErrorHandler(code <a href="https://pkg.go.dev/builtin#string">string</a>, h <a href="https://pkg.go.dev/net/http">http</a>.<a href="https://pkg.go.dev/net/http#HandlerFunc">HandlerFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>ErrorHandler registers http.HandlerFunc to each http err code string.
usage:
</p><pre>beego.ErrorHandler("404",NotFound)
beego.ErrorHandler("500",InternalServerError)
</pre>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="Get" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L404">Get</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Get" title="Go to Get" aria-label="Go to Get">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Get(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>Get used to register router for Get method
usage:
</p><pre>beego.Get("/", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="Handler" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L484">Handler</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Handler" title="Go to Handler" aria-label="Go to Handler">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Handler(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, h <a href="https://pkg.go.dev/net/http">http</a>.<a href="https://pkg.go.dev/net/http#Handler">Handler</a>, options ...interface{}) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>Handler used to register a Handler router
usage:
</p><pre>beego.Handler("/api", http.HandlerFunc(func (w http.ResponseWriter, r *http.Request) {
      fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
}))
</pre>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="Head" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L444">Head</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Head" title="Go to Head" aria-label="Go to Head">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Head(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>Head used to register router for Head method
usage:
</p><pre>beego.Head("/api", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="Include" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L367">Include</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Include" title="Go to Include" aria-label="Go to Include">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Include(cList ...<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>Include will generate router file in the router/xxx.go from the controller's comments
usage:
beego.Include(&amp;BankAccount{}, &amp;OrderController{},&amp;RefundController{},&amp;ReceiptController{})
</p><pre>type BankAccount struct{
  beego.Controller
}
</pre><p>register the function
</p><pre>func (b *BankAccount)Mapping(){
 b.Mapping("ShowAccount" , b.ShowAccount)
 b.Mapping("ModifyAccount", b.ModifyAccount)
}
</pre><p>//@router /account/:id  [get]
</p><pre>func (b *BankAccount) ShowAccount(){
   //logic
}
</pre><p>//@router /account/:id  [post]
</p><pre>func (b *BankAccount) ModifyAccount(){
   //logic
}
</pre><p>the comments @router url methodlist
url support all the function Router's pattern
methodlist [get post head put delete options *]
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="InsertFilter" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L493">InsertFilter</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#InsertFilter" title="Go to InsertFilter" aria-label="Go to InsertFilter">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func InsertFilter(pattern <a href="https://pkg.go.dev/builtin#string">string</a>, pos <a href="https://pkg.go.dev/builtin#int">int</a>, filter <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>, params ...<a href="https://pkg.go.dev/builtin#bool">bool</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>InsertFilter adds a FilterFunc with pattern condition and action constant.
The pos means action constant including
beego.BeforeStatic, beego.BeforeRouter, beego.BeforeExec, beego.AfterExec and beego.FinishRouter.
The bool params is for setting the returnOnOutput value (false allows multiple filters to execute)
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NewApp" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L53">NewApp</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NewApp" title="Go to NewApp" aria-label="Go to NewApp">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NewApp() *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>NewApp returns a new beego application.
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="Options" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L454">Options</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Options" title="Go to Options" aria-label="Go to Options">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Options(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>Options used to register router for Options method
usage:
</p><pre>beego.Options("/api", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="Patch" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L464">Patch</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Patch" title="Go to Patch" aria-label="Go to Patch">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Patch(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>Patch used to register router for Patch method
usage:
</p><pre>beego.Patch("/api", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="Post" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L414">Post</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Post" title="Go to Post" aria-label="Go to Post">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Post(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>Post used to register router for Post method
usage:
</p><pre>beego.Post("/api", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="Put" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L434">Put</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Put" title="Go to Put" aria-label="Go to Put">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Put(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>Put used to register router for Put method
usage:
</p><pre>beego.Put("/api", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="RESTRouter" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L375">RESTRouter</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#RESTRouter" title="Go to RESTRouter" aria-label="Go to RESTRouter">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func RESTRouter(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, c <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>RESTRouter adds a restful controller handler to BeeApp.
its' controller implements beego.ControllerInterface and
defines a param "pattern/:objectId" to visit each resource.
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="Router" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L257">Router</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Router" title="Go to Router" aria-label="Go to Router">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func Router(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, c <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>, mappingMethods ...<a href="https://pkg.go.dev/builtin#string">string</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>Router adds a patterned controller handler to BeeApp.
it's an alias method of App.Router.
usage:
</p><pre>simple router
beego.Router("/admin", &amp;admin.UserController{})
beego.Router("/admin/index", &amp;admin.ArticleController{})

regex router

beego.Router("/api/:id([0-9]+)", &amp;controllers.RController{})

custom rules
beego.Router("/api/list",&amp;RestController{},"*:ListFood")
beego.Router("/api/create",&amp;RestController{},"post:CreateFood")
beego.Router("/api/update",&amp;RestController{},"put:UpdateFood")
beego.Router("/api/delete",&amp;RestController{},"delete:DeleteFood")
</pre>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="SetStaticPath" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/template.go#L378">SetStaticPath</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#SetStaticPath" title="Go to SetStaticPath" aria-label="Go to SetStaticPath">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func SetStaticPath(url <a href="https://pkg.go.dev/builtin#string">string</a>, path <a href="https://pkg.go.dev/builtin#string">string</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>SetStaticPath sets static directory path and proper url pattern in beego application.
if beego.SetStaticPath("static","public"), visit /static/* to load static file in folder "public".
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="SetViewsPath" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/template.go#L371">SetViewsPath</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#SetViewsPath" title="Go to SetViewsPath" aria-label="Go to SetViewsPath">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func SetViewsPath(path <a href="https://pkg.go.dev/builtin#string">string</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>SetViewsPath sets view directory path in beego application.
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="UnregisterFixedRoute" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L271">UnregisterFixedRoute</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#UnregisterFixedRoute" title="Go to UnregisterFixedRoute" aria-label="Go to UnregisterFixedRoute">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.9.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func UnregisterFixedRoute(fixedRoute <a href="https://pkg.go.dev/builtin#string">string</a>, method <a href="https://pkg.go.dev/builtin#string">string</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a></pre>
    </div>
  <p>UnregisterFixedRoute unregisters the route with the specified fixedRoute. It is particularly useful
in web applications that inherit most routes from a base webapp via the underscore
import, and aim to overwrite only certain paths.
The method parameter can be empty or "*" for all HTTP methods, or a particular
method type (e.g. "GET" or "POST") for selective removal.
</p><p>Usage (replace "GET" with "*" for all methods):
</p><pre>beego.UnregisterFixedRoute("/yourpreviouspath", "GET")
beego.Router("/yourpreviouspath", yourControllerAddress, "get:GetNewPage")
</pre>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="App.Run" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*App) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L63">Run</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#App.Run" title="Go to App.Run" aria-label="Go to App.Run">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (app *<a href="https://pkg.go.dev/github.com/astaxie/beego#App">App</a>) Run(mws ...<a href="https://pkg.go.dev/github.com/astaxie/beego#MiddleWare">MiddleWare</a>)</pre>
    </div>
  <p>Run beego application.
</p>

  

  </div>
  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="Config" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/config.go#L35">Config</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Config" title="Go to Config" aria-label="Go to Config">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type Config struct {
<span id="Config.AppName" data-kind="field">	AppName             <a href="https://pkg.go.dev/builtin#string">string</a> <span class="comment">//Application name</span>
</span><span id="Config.RunMode" data-kind="field">	RunMode             <a href="https://pkg.go.dev/builtin#string">string</a> <span class="comment">//Running Mode: dev | prod</span>
</span><span id="Config.RouterCaseSensitive" data-kind="field">	RouterCaseSensitive <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="Config.ServerName" data-kind="field">	ServerName          <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="Config.RecoverPanic" data-kind="field">	RecoverPanic        <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="Config.RecoverFunc" data-kind="field">	RecoverFunc         func(*<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">context</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a>)
</span><span id="Config.CopyRequestBody" data-kind="field">	CopyRequestBody     <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="Config.EnableGzip" data-kind="field">	EnableGzip          <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="Config.MaxMemory" data-kind="field">	MaxMemory           <a href="https://pkg.go.dev/builtin#int64">int64</a>
</span><span id="Config.EnableErrorsShow" data-kind="field">	EnableErrorsShow    <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="Config.EnableErrorsRender" data-kind="field">	EnableErrorsRender  <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="Config.Listen" data-kind="field">	Listen              <a href="https://pkg.go.dev/github.com/astaxie/beego#Listen">Listen</a>
</span><span id="Config.WebConfig" data-kind="field">	WebConfig           <a href="https://pkg.go.dev/github.com/astaxie/beego#WebConfig">WebConfig</a>
</span><span id="Config.Log" data-kind="field">	Log                 <a href="https://pkg.go.dev/github.com/astaxie/beego#LogConfig">LogConfig</a>
</span>}</pre>
    </div>
  <p>Config is the main struct for BConfig
</p>

  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="Controller" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L88">Controller</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller" title="Go to Controller" aria-label="Go to Controller">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type Controller struct {
	<span class="comment">// context data</span>
<span id="Controller.Ctx" data-kind="field">	Ctx  *<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">context</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a>
</span><span id="Controller.Data" data-kind="field">	Data map[interface{}]interface{}
</span>
<span id="Controller.AppController" data-kind="field">	AppController interface{}
</span>
	<span class="comment">// template data</span>
<span id="Controller.TplName" data-kind="field">	TplName        <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="Controller.ViewPath" data-kind="field">	ViewPath       <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="Controller.Layout" data-kind="field">	Layout         <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="Controller.LayoutSections" data-kind="field">	LayoutSections map[<a href="https://pkg.go.dev/builtin#string">string</a>]<a href="https://pkg.go.dev/builtin#string">string</a> <span class="comment">// the key is the section name and the value is the template name</span>
</span><span id="Controller.TplPrefix" data-kind="field">	TplPrefix      <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="Controller.TplExt" data-kind="field">	TplExt         <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="Controller.EnableRender" data-kind="field">	EnableRender   <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span>
<span id="Controller.XSRFExpire" data-kind="field">	XSRFExpire <a href="https://pkg.go.dev/builtin#int">int</a>
</span><span id="Controller.EnableXSRF" data-kind="field">	EnableXSRF <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span>
<span id="Controller.CruSession" data-kind="field">	<span class="comment">// session</span>
</span>	CruSession <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session">session</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session#Store">Store</a>
	<span class="comment">// contains filtered or unexported fields</span>
}</pre>
    </div>
  <p>Controller defines some basic http request handler operations, such as
http context, template and view, session and xsrf.
</p>
<div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Abort" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L336">Abort</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Abort" title="Go to Controller.Abort" aria-label="Go to Controller.Abort">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Abort(code <a href="https://pkg.go.dev/builtin#string">string</a>)</pre>
    </div>
  <p>Abort stops controller handler and show the error data if code is defined in ErrorMap or code string.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.CheckXSRFCookie" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L690">CheckXSRFCookie</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.CheckXSRFCookie" title="Go to Controller.CheckXSRFCookie" aria-label="Go to Controller.CheckXSRFCookie">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) CheckXSRFCookie() <a href="https://pkg.go.dev/builtin#bool">bool</a></pre>
    </div>
  <p>CheckXSRFCookie checks xsrf token in this request is valid or not.
the token can provided in request header "X-Xsrftoken" and "X-CsrfToken"
or in form field value named as "_xsrf".
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.CustomAbort" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L345">CustomAbort</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.CustomAbort" title="Go to Controller.CustomAbort" aria-label="Go to Controller.CustomAbort">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) CustomAbort(status <a href="https://pkg.go.dev/builtin#int">int</a>, body <a href="https://pkg.go.dev/builtin#string">string</a>)</pre>
    </div>
  <p>CustomAbort stops controller handler and show the error data, it's similar Aborts, but support status code and body.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.DelSession" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L636">DelSession</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.DelSession" title="Go to Controller.DelSession" aria-label="Go to Controller.DelSession">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) DelSession(name interface{})</pre>
    </div>
  <p>DelSession removes value from session.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Delete" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L169">Delete</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Delete" title="Go to Controller.Delete" aria-label="Go to Controller.Delete">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Delete()</pre>
    </div>
  <p>Delete adds a request function to handle DELETE request.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.DestroySession" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L654">DestroySession</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.DestroySession" title="Go to Controller.DestroySession" aria-label="Go to Controller.DestroySession">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) DestroySession()</pre>
    </div>
  <p>DestroySession cleans session data and session cookie.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Finish" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L156">Finish</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Finish" title="Go to Controller.Finish" aria-label="Go to Controller.Finish">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Finish()</pre>
    </div>
  <p>Finish runs after request function execution.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Get" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L159">Get</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Get" title="Go to Controller.Get" aria-label="Go to Controller.Get">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Get()</pre>
    </div>
  <p>Get adds a request function to handle GET request.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetBool" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L537">GetBool</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetBool" title="Go to Controller.GetBool" aria-label="Go to Controller.GetBool">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetBool(key <a href="https://pkg.go.dev/builtin#string">string</a>, def ...<a href="https://pkg.go.dev/builtin#bool">bool</a>) (<a href="https://pkg.go.dev/builtin#bool">bool</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>GetBool returns input value as bool or the default value while it's present and input is blank.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetControllerAndAction" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L704">GetControllerAndAction</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetControllerAndAction" title="Go to Controller.GetControllerAndAction" aria-label="Go to Controller.GetControllerAndAction">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetControllerAndAction() (<a href="https://pkg.go.dev/builtin#string">string</a>, <a href="https://pkg.go.dev/builtin#string">string</a>)</pre>
    </div>
  <p>GetControllerAndAction gets the executing controller name and action name.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetFile" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L556">GetFile</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetFile" title="Go to Controller.GetFile" aria-label="Go to Controller.GetFile">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetFile(key <a href="https://pkg.go.dev/builtin#string">string</a>) (<a href="https://pkg.go.dev/mime/multipart">multipart</a>.<a href="https://pkg.go.dev/mime/multipart#File">File</a>, *<a href="https://pkg.go.dev/mime/multipart">multipart</a>.<a href="https://pkg.go.dev/mime/multipart#FileHeader">FileHeader</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>GetFile returns the file data in file upload field named as key.
it returns the first one of multi-uploaded files.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetFiles" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L587">GetFiles</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetFiles" title="Go to Controller.GetFiles" aria-label="Go to Controller.GetFiles">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.5.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetFiles(key <a href="https://pkg.go.dev/builtin#string">string</a>) ([]*<a href="https://pkg.go.dev/mime/multipart">multipart</a>.<a href="https://pkg.go.dev/mime/multipart#FileHeader">FileHeader</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>GetFiles return multi-upload files
files, err:=c.GetFiles("myfiles")
</p><pre>if err != nil {
	http.Error(w, err.Error(), http.StatusNoContent)
	return
}
</pre><pre>for i, _ := range files {
	//for each fileheader, get a handle to the actual file
	file, err := files[i].Open()
	defer file.Close()
	if err != nil {
		http.Error(w, err.Error(), http.StatusInternalServerError)
		return
	}
	//create destination file making sure the path is writeable.
	dst, err := os.Create("upload/" + files[i].Filename)
	defer dst.Close()
	if err != nil {
		http.Error(w, err.Error(), http.StatusInternalServerError)
		return
	}
	//copy the uploaded file to the destination file
	if _, err := io.Copy(dst, file); err != nil {
		http.Error(w, err.Error(), http.StatusInternalServerError)
		return
	}
}
</pre>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetFloat" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L546">GetFloat</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetFloat" title="Go to Controller.GetFloat" aria-label="Go to Controller.GetFloat">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetFloat(key <a href="https://pkg.go.dev/builtin#string">string</a>, def ...<a href="https://pkg.go.dev/builtin#float64">float64</a>) (<a href="https://pkg.go.dev/builtin#float64">float64</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>GetFloat returns input value as float64 or the default value while it's present and input is blank.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetInt" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L450">GetInt</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt" title="Go to Controller.GetInt" aria-label="Go to Controller.GetInt">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetInt(key <a href="https://pkg.go.dev/builtin#string">string</a>, def ...<a href="https://pkg.go.dev/builtin#int">int</a>) (<a href="https://pkg.go.dev/builtin#int">int</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>GetInt returns input as an int or the default value while it's present and input is blank
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetInt16" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L479">GetInt16</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt16" title="Go to Controller.GetInt16" aria-label="Go to Controller.GetInt16">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetInt16(key <a href="https://pkg.go.dev/builtin#string">string</a>, def ...<a href="https://pkg.go.dev/builtin#int16">int16</a>) (<a href="https://pkg.go.dev/builtin#int16">int16</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>GetInt16 returns input as an int16 or the default value while it's present and input is blank
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetInt32" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L499">GetInt32</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt32" title="Go to Controller.GetInt32" aria-label="Go to Controller.GetInt32">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetInt32(key <a href="https://pkg.go.dev/builtin#string">string</a>, def ...<a href="https://pkg.go.dev/builtin#int32">int32</a>) (<a href="https://pkg.go.dev/builtin#int32">int32</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>GetInt32 returns input as an int32 or the default value while it's present and input is blank
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetInt64" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L519">GetInt64</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt64" title="Go to Controller.GetInt64" aria-label="Go to Controller.GetInt64">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetInt64(key <a href="https://pkg.go.dev/builtin#string">string</a>, def ...<a href="https://pkg.go.dev/builtin#int64">int64</a>) (<a href="https://pkg.go.dev/builtin#int64">int64</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>GetInt64 returns input value as int64 or the default value while it's present and input is blank.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetInt8" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L459">GetInt8</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetInt8" title="Go to Controller.GetInt8" aria-label="Go to Controller.GetInt8">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetInt8(key <a href="https://pkg.go.dev/builtin#string">string</a>, def ...<a href="https://pkg.go.dev/builtin#int8">int8</a>) (<a href="https://pkg.go.dev/builtin#int8">int8</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>GetInt8 return input as an int8 or the default value while it's present and input is blank
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetSecureCookie" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L666">GetSecureCookie</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetSecureCookie" title="Go to Controller.GetSecureCookie" aria-label="Go to Controller.GetSecureCookie">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetSecureCookie(Secret, key <a href="https://pkg.go.dev/builtin#string">string</a>) (<a href="https://pkg.go.dev/builtin#string">string</a>, <a href="https://pkg.go.dev/builtin#bool">bool</a>)</pre>
    </div>
  <p>GetSecureCookie returns decoded cookie value from encoded browser cookie values.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetSession" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L628">GetSession</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetSession" title="Go to Controller.GetSession" aria-label="Go to Controller.GetSession">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetSession(name interface{}) interface{}</pre>
    </div>
  <p>GetSession gets value from session.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetString" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L422">GetString</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetString" title="Go to Controller.GetString" aria-label="Go to Controller.GetString">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetString(key <a href="https://pkg.go.dev/builtin#string">string</a>, def ...<a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#string">string</a></pre>
    </div>
  <p>GetString returns the input value by key string or the default value while it's present and input is blank
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetStrings" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L434">GetStrings</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetStrings" title="Go to Controller.GetStrings" aria-label="Go to Controller.GetStrings">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetStrings(key <a href="https://pkg.go.dev/builtin#string">string</a>, def ...[]<a href="https://pkg.go.dev/builtin#string">string</a>) []<a href="https://pkg.go.dev/builtin#string">string</a></pre>
    </div>
  <p>GetStrings returns the input string slice by key string or the default value while it's present and input is blank
it's designed for multi-value input field such as checkbox(input[type=checkbox]), multi-selection.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetUint16" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L489">GetUint16</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetUint16" title="Go to Controller.GetUint16" aria-label="Go to Controller.GetUint16">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.7.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetUint16(key <a href="https://pkg.go.dev/builtin#string">string</a>, def ...<a href="https://pkg.go.dev/builtin#uint16">uint16</a>) (<a href="https://pkg.go.dev/builtin#uint16">uint16</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>GetUint16 returns input as an uint16 or the default value while it's present and input is blank
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetUint32" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L509">GetUint32</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetUint32" title="Go to Controller.GetUint32" aria-label="Go to Controller.GetUint32">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.7.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetUint32(key <a href="https://pkg.go.dev/builtin#string">string</a>, def ...<a href="https://pkg.go.dev/builtin#uint32">uint32</a>) (<a href="https://pkg.go.dev/builtin#uint32">uint32</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>GetUint32 returns input as an uint32 or the default value while it's present and input is blank
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetUint64" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L528">GetUint64</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetUint64" title="Go to Controller.GetUint64" aria-label="Go to Controller.GetUint64">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.7.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetUint64(key <a href="https://pkg.go.dev/builtin#string">string</a>, def ...<a href="https://pkg.go.dev/builtin#uint64">uint64</a>) (<a href="https://pkg.go.dev/builtin#uint64">uint64</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>GetUint64 returns input value as uint64 or the default value while it's present and input is blank.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.GetUint8" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L469">GetUint8</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.GetUint8" title="Go to Controller.GetUint8" aria-label="Go to Controller.GetUint8">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.7.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) GetUint8(key <a href="https://pkg.go.dev/builtin#string">string</a>, def ...<a href="https://pkg.go.dev/builtin#uint8">uint8</a>) (<a href="https://pkg.go.dev/builtin#uint8">uint8</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>GetUint8 return input as an uint8 or the default value while it's present and input is blank
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.HandlerFunc" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L216">HandlerFunc</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.HandlerFunc" title="Go to Controller.HandlerFunc" aria-label="Go to Controller.HandlerFunc">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) HandlerFunc(fnname <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#bool">bool</a></pre>
    </div>
  <p>HandlerFunc call function with the name
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Head" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L179">Head</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Head" title="Go to Controller.Head" aria-label="Go to Controller.Head">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Head()</pre>
    </div>
  <p>Head adds a request function to handle HEAD request.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Init" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L138">Init</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Init" title="Go to Controller.Init" aria-label="Go to Controller.Init">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Init(ctx *<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">context</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a>, controllerName, actionName <a href="https://pkg.go.dev/builtin#string">string</a>, app interface{})</pre>
    </div>
  <p>Init generates default values of controller operations.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Input" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L409">Input</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Input" title="Go to Controller.Input" aria-label="Go to Controller.Input">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Input() <a href="https://pkg.go.dev/net/url">url</a>.<a href="https://pkg.go.dev/net/url#Values">Values</a></pre>
    </div>
  <p>Input returns the input data map from POST or PUT request body and query string.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.IsAjax" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L661">IsAjax</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.IsAjax" title="Go to Controller.IsAjax" aria-label="Go to Controller.IsAjax">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) IsAjax() <a href="https://pkg.go.dev/builtin#bool">bool</a></pre>
    </div>
  <p>IsAjax returns this request is ajax or not.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Mapping" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L228">Mapping</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Mapping" title="Go to Controller.Mapping" aria-label="Go to Controller.Mapping">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Mapping(method <a href="https://pkg.go.dev/builtin#string">string</a>, fn func())</pre>
    </div>
  <p>Mapping the method to function
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Options" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L189">Options</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Options" title="Go to Controller.Options" aria-label="Go to Controller.Options">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Options()</pre>
    </div>
  <p>Options adds a request function to handle OPTIONS request.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.ParseForm" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L417">ParseForm</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ParseForm" title="Go to Controller.ParseForm" aria-label="Go to Controller.ParseForm">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) ParseForm(obj interface{}) <a href="https://pkg.go.dev/builtin#error">error</a></pre>
    </div>
  <p>ParseForm maps input data map to obj struct.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Patch" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L184">Patch</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Patch" title="Go to Controller.Patch" aria-label="Go to Controller.Patch">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Patch()</pre>
    </div>
  <p>Patch adds a request function to handle PATCH request.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Post" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L164">Post</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Post" title="Go to Controller.Post" aria-label="Go to Controller.Post">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Post()</pre>
    </div>
  <p>Post adds a request function to handle POST request.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Prepare" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L153">Prepare</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Prepare" title="Go to Controller.Prepare" aria-label="Go to Controller.Prepare">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Prepare()</pre>
    </div>
  <p>Prepare runs after Init before request function execution.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Put" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L174">Put</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Put" title="Go to Controller.Put" aria-label="Go to Controller.Put">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Put()</pre>
    </div>
  <p>Put adds a request function to handle PUT request.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Redirect" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L317">Redirect</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Redirect" title="Go to Controller.Redirect" aria-label="Go to Controller.Redirect">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Redirect(url <a href="https://pkg.go.dev/builtin#string">string</a>, code <a href="https://pkg.go.dev/builtin#int">int</a>)</pre>
    </div>
  <p>Redirect sends the redirection response to url with status code.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Render" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L233">Render</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Render" title="Go to Controller.Render" aria-label="Go to Controller.Render">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Render() <a href="https://pkg.go.dev/builtin#error">error</a></pre>
    </div>
  <p>Render sends the response with rendered template bytes as text/html type.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.RenderBytes" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L256">RenderBytes</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.RenderBytes" title="Go to Controller.RenderBytes" aria-label="Go to Controller.RenderBytes">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) RenderBytes() ([]<a href="https://pkg.go.dev/builtin#byte">byte</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>RenderBytes returns the bytes of rendered template string. Do not send out response.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.RenderString" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L250">RenderString</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.RenderString" title="Go to Controller.RenderString" aria-label="Go to Controller.RenderString">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) RenderString() (<a href="https://pkg.go.dev/builtin#string">string</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  <p>RenderString returns the rendered template string. Do not send out response.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.SaveToFile" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L596">SaveToFile</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SaveToFile" title="Go to Controller.SaveToFile" aria-label="Go to Controller.SaveToFile">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) SaveToFile(fromfile, tofile <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></pre>
    </div>
  <p>SaveToFile saves uploaded file to new path.
it only operates the first one of mutil-upload form file field.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.ServeFormatted" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L402">ServeFormatted</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeFormatted" title="Go to Controller.ServeFormatted" aria-label="Go to Controller.ServeFormatted">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) ServeFormatted(encoding ...<a href="https://pkg.go.dev/builtin#bool">bool</a>)</pre>
    </div>
  <p>ServeFormatted serve YAML, XML OR JSON, depending on the value of the Accept header
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.ServeJSON" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L375">ServeJSON</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeJSON" title="Go to Controller.ServeJSON" aria-label="Go to Controller.ServeJSON">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) ServeJSON(encoding ...<a href="https://pkg.go.dev/builtin#bool">bool</a>)</pre>
    </div>
  <p>ServeJSON sends a json response with encoding charset.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.ServeJSONP" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L385">ServeJSONP</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeJSONP" title="Go to Controller.ServeJSONP" aria-label="Go to Controller.ServeJSONP">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) ServeJSONP()</pre>
    </div>
  <p>ServeJSONP sends a jsonp response.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.ServeXML" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L391">ServeXML</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeXML" title="Go to Controller.ServeXML" aria-label="Go to Controller.ServeXML">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) ServeXML()</pre>
    </div>
  <p>ServeXML sends xml response.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.ServeYAML" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L397">ServeYAML</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.ServeYAML" title="Go to Controller.ServeYAML" aria-label="Go to Controller.ServeYAML">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.10.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) ServeYAML()</pre>
    </div>
  <p>ServeYAML sends yaml response.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.SessionRegenerateID" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L645">SessionRegenerateID</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SessionRegenerateID" title="Go to Controller.SessionRegenerateID" aria-label="Go to Controller.SessionRegenerateID">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) SessionRegenerateID()</pre>
    </div>
  <p>SessionRegenerateID regenerates session id for this session.
the session data have no changes.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.SetData" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L323">SetData</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SetData" title="Go to Controller.SetData" aria-label="Go to Controller.SetData">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.10.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) SetData(data interface{})</pre>
    </div>
  <p>SetData set the data depending on the accepted
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.SetSecureCookie" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L671">SetSecureCookie</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SetSecureCookie" title="Go to Controller.SetSecureCookie" aria-label="Go to Controller.SetSecureCookie">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) SetSecureCookie(Secret, name, value <a href="https://pkg.go.dev/builtin#string">string</a>, others ...interface{})</pre>
    </div>
  <p>SetSecureCookie puts value into cookie after encoded the value.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.SetSession" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L620">SetSession</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.SetSession" title="Go to Controller.SetSession" aria-label="Go to Controller.SetSession">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) SetSession(name interface{}, value interface{})</pre>
    </div>
  <p>SetSession puts value into session.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.StartSession" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L612">StartSession</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.StartSession" title="Go to Controller.StartSession" aria-label="Go to Controller.StartSession">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) StartSession() <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session">session</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session#Store">Store</a></pre>
    </div>
  <p>StartSession starts session and load old session data info this controller.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.StopRun" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L358">StopRun</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.StopRun" title="Go to Controller.StopRun" aria-label="Go to Controller.StopRun">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) StopRun()</pre>
    </div>
  <p>StopRun makes panic of USERSTOPRUN error and go to recover function if defined.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.Trace" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L201">Trace</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.Trace" title="Go to Controller.Trace" aria-label="Go to Controller.Trace">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.12.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) Trace()</pre>
    </div>
  <p>Trace adds a request function to handle Trace request.
this method SHOULD NOT be overridden.
<a href="https://tools.ietf.org/html/rfc7231#section-4.3.8">https://tools.ietf.org/html/rfc7231#section-4.3.8</a>
The TRACE method requests a remote, application-level loop-back of
the request message.  The final recipient of the request SHOULD
reflect the message received, excluding some fields described below,
back to the client as the message body of a 200 (OK) response with a
Content-Type of "message/http" (Section 8.3.1 of [RFC7230]).
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.URLFor" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L364">URLFor</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.URLFor" title="Go to Controller.URLFor" aria-label="Go to Controller.URLFor">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) URLFor(endpoint <a href="https://pkg.go.dev/builtin#string">string</a>, values ...interface{}) <a href="https://pkg.go.dev/builtin#string">string</a></pre>
    </div>
  <p>URLFor does another controller handler in this request function.
it goes to this controller method if endpoint is not clear.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.URLMapping" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L225">URLMapping</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.URLMapping" title="Go to Controller.URLMapping" aria-label="Go to Controller.URLMapping">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) URLMapping()</pre>
    </div>
  <p>URLMapping register the internal Controller router.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.XSRFFormHTML" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L698">XSRFFormHTML</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.XSRFFormHTML" title="Go to Controller.XSRFFormHTML" aria-label="Go to Controller.XSRFFormHTML">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) XSRFFormHTML() <a href="https://pkg.go.dev/builtin#string">string</a></pre>
    </div>
  <p>XSRFFormHTML writes an input field contains xsrf token value.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Controller.XSRFToken" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Controller) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L676">XSRFToken</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Controller.XSRFToken" title="Go to Controller.XSRFToken" aria-label="Go to Controller.XSRFToken">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) XSRFToken() <a href="https://pkg.go.dev/builtin#string">string</a></pre>
    </div>
  <p>XSRFToken creates a CSRF token string and returns.
</p>

  

  </div>
  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="ControllerComments" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L68">ControllerComments</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerComments" title="Go to ControllerComments" aria-label="Go to ControllerComments">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type ControllerComments struct {
<span id="ControllerComments.Method" data-kind="field">	Method           <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="ControllerComments.Router" data-kind="field">	Router           <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="ControllerComments.Filters" data-kind="field">	Filters          []*<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerFilter">ControllerFilter</a>
</span><span id="ControllerComments.ImportComments" data-kind="field">	ImportComments   []*<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerImportComments">ControllerImportComments</a>
</span><span id="ControllerComments.FilterComments" data-kind="field">	FilterComments   []*<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerFilterComments">ControllerFilterComments</a>
</span><span id="ControllerComments.AllowHTTPMethods" data-kind="field">	AllowHTTPMethods []<a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="ControllerComments.Params" data-kind="field">	Params           []map[<a href="https://pkg.go.dev/builtin#string">string</a>]<a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="ControllerComments.MethodParams" data-kind="field">	MethodParams     []*<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context/param">param</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context/param#MethodParam">MethodParam</a>
</span>}</pre>
    </div>
  <p>ControllerComments store the comment for the controller method
</p>

  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="ControllerCommentsSlice" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L80">ControllerCommentsSlice</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice" title="Go to ControllerCommentsSlice" aria-label="Go to ControllerCommentsSlice">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.9.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type ControllerCommentsSlice []<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerComments">ControllerComments</a></pre>
    </div>
  <p>ControllerCommentsSlice implements the sort interface
</p>
<div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerCommentsSlice.Len" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (ControllerCommentsSlice) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L82">Len</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice.Len" title="Go to ControllerCommentsSlice.Len" aria-label="Go to ControllerCommentsSlice.Len">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.9.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice">ControllerCommentsSlice</a>) Len() <a href="https://pkg.go.dev/builtin#int">int</a></pre>
    </div>
  

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerCommentsSlice.Less" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (ControllerCommentsSlice) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L83">Less</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice.Less" title="Go to ControllerCommentsSlice.Less" aria-label="Go to ControllerCommentsSlice.Less">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.9.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice">ControllerCommentsSlice</a>) Less(i, j <a href="https://pkg.go.dev/builtin#int">int</a>) <a href="https://pkg.go.dev/builtin#bool">bool</a></pre>
    </div>
  

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerCommentsSlice.Swap" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (ControllerCommentsSlice) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L84">Swap</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice.Swap" title="Go to ControllerCommentsSlice.Swap" aria-label="Go to ControllerCommentsSlice.Swap">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.9.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerCommentsSlice">ControllerCommentsSlice</a>) Swap(i, j <a href="https://pkg.go.dev/builtin#int">int</a>)</pre>
    </div>
  

  

  </div>
  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="ControllerFilter" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L44">ControllerFilter</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerFilter" title="Go to ControllerFilter" aria-label="Go to ControllerFilter">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.11.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type ControllerFilter struct {
<span id="ControllerFilter.Pattern" data-kind="field">	Pattern        <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="ControllerFilter.Pos" data-kind="field">	Pos            <a href="https://pkg.go.dev/builtin#int">int</a>
</span><span id="ControllerFilter.Filter" data-kind="field">	Filter         <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>
</span><span id="ControllerFilter.ReturnOnOutput" data-kind="field">	ReturnOnOutput <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="ControllerFilter.ResetParams" data-kind="field">	ResetParams    <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span>}</pre>
    </div>
  <p>ControllerFilter store the filter for controller
</p>

  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="ControllerFilterComments" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L53">ControllerFilterComments</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerFilterComments" title="Go to ControllerFilterComments" aria-label="Go to ControllerFilterComments">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.11.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type ControllerFilterComments struct {
<span id="ControllerFilterComments.Pattern" data-kind="field">	Pattern        <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="ControllerFilterComments.Pos" data-kind="field">	Pos            <a href="https://pkg.go.dev/builtin#int">int</a>
</span><span id="ControllerFilterComments.Filter" data-kind="field">	Filter         <a href="https://pkg.go.dev/builtin#string">string</a> <span class="comment">// NOQA</span>
</span><span id="ControllerFilterComments.ReturnOnOutput" data-kind="field">	ReturnOnOutput <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="ControllerFilterComments.ResetParams" data-kind="field">	ResetParams    <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span>}</pre>
    </div>
  <p>ControllerFilterComments store the comment for controller level filter
</p>

  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="ControllerImportComments" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L62">ControllerImportComments</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerImportComments" title="Go to ControllerImportComments" aria-label="Go to ControllerImportComments">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.11.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type ControllerImportComments struct {
<span id="ControllerImportComments.ImportPath" data-kind="field">	ImportPath  <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="ControllerImportComments.ImportAlias" data-kind="field">	ImportAlias <a href="https://pkg.go.dev/builtin#string">string</a>
</span>}</pre>
    </div>
  <p>ControllerImportComments store the import comment for controller needed
</p>

  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="ControllerInfo" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L114">ControllerInfo</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInfo" title="Go to ControllerInfo" aria-label="Go to ControllerInfo">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.8.1</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type ControllerInfo struct {
	<span class="comment">// contains filtered or unexported fields</span>
}</pre>
    </div>
  <p>ControllerInfo holds information about the controller.
</p>
<div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerInfo.GetPattern" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerInfo) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L125">GetPattern</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInfo.GetPattern" title="Go to ControllerInfo.GetPattern" aria-label="Go to ControllerInfo.GetPattern">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.12.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (c *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInfo">ControllerInfo</a>) GetPattern() <a href="https://pkg.go.dev/builtin#string">string</a></pre>
    </div>
  

  

  </div>
  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="ControllerInterface" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go#L118">ControllerInterface</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface" title="Go to ControllerInterface" aria-label="Go to ControllerInterface">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type ControllerInterface interface {
<span id="ControllerInterface.Init" data-kind="method">	Init(ct *<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">context</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a>, controllerName, actionName <a href="https://pkg.go.dev/builtin#string">string</a>, app interface{})
</span><span id="ControllerInterface.Prepare" data-kind="method">	Prepare()
</span><span id="ControllerInterface.Get" data-kind="method">	Get()
</span><span id="ControllerInterface.Post" data-kind="method">	Post()
</span><span id="ControllerInterface.Delete" data-kind="method">	Delete()
</span><span id="ControllerInterface.Put" data-kind="method">	Put()
</span><span id="ControllerInterface.Head" data-kind="method">	Head()
</span><span id="ControllerInterface.Patch" data-kind="method">	Patch()
</span><span id="ControllerInterface.Options" data-kind="method">	Options()
</span><span id="ControllerInterface.Trace" data-kind="method">	Trace()
</span><span id="ControllerInterface.Finish" data-kind="method">	Finish()
</span><span id="ControllerInterface.Render" data-kind="method">	Render() <a href="https://pkg.go.dev/builtin#error">error</a>
</span><span id="ControllerInterface.XSRFToken" data-kind="method">	XSRFToken() <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="ControllerInterface.CheckXSRFCookie" data-kind="method">	CheckXSRFCookie() <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="ControllerInterface.HandlerFunc" data-kind="method">	HandlerFunc(fn <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="ControllerInterface.URLMapping" data-kind="method">	URLMapping()
</span>}</pre>
    </div>
  <p>ControllerInterface is an interface to uniform all controller handler.
</p>

  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="ControllerRegister" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L130">ControllerRegister</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister" title="Go to ControllerRegister" aria-label="Go to ControllerRegister">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type ControllerRegister struct {
	<span class="comment">// contains filtered or unexported fields</span>
}</pre>
    </div>
  <p>ControllerRegister containers registered router rules, controller handlers and filters.
</p>
<div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NewControllerRegister" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L140">NewControllerRegister</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NewControllerRegister" title="Go to NewControllerRegister" aria-label="Go to NewControllerRegister">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NewControllerRegister() *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a></pre>
    </div>
  <p>NewControllerRegister returns a new ControllerRegister.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.Add" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L162">Add</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Add" title="Go to ControllerRegister.Add" aria-label="Go to ControllerRegister.Add">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) Add(pattern <a href="https://pkg.go.dev/builtin#string">string</a>, c <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>, mappingMethods ...<a href="https://pkg.go.dev/builtin#string">string</a>)</pre>
    </div>
  <p>Add controller handler and pattern rules to ControllerRegister.
usage:
</p><pre>default methods is the same name as method
Add("/user",&amp;UserController{})
Add("/api/list",&amp;RestController{},"*:ListFood")
Add("/api/create",&amp;RestController{},"post:CreateFood")
Add("/api/update",&amp;RestController{},"put:UpdateFood")
Add("/api/delete",&amp;RestController{},"delete:DeleteFood")
Add("/api",&amp;RestController{},"get,post:ApiFunc"
Add("/simple",&amp;SimpleController{},"get:GetFunc;post:PostFunc")
</pre>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.AddAuto" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L452">AddAuto</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.AddAuto" title="Go to ControllerRegister.AddAuto" aria-label="Go to ControllerRegister.AddAuto">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) AddAuto(c <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>)</pre>
    </div>
  <p>AddAuto router to ControllerRegister.
example beego.AddAuto(&amp;MainContorlller{}),
MainController has method List and Page.
visit the url /main/list to execute List function
/main/page to execute Page function.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.AddAutoPrefix" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L461">AddAutoPrefix</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.AddAutoPrefix" title="Go to ControllerRegister.AddAutoPrefix" aria-label="Go to ControllerRegister.AddAutoPrefix">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) AddAutoPrefix(prefix <a href="https://pkg.go.dev/builtin#string">string</a>, c <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>)</pre>
    </div>
  <p>AddAutoPrefix Add auto router to ControllerRegister with prefix.
example beego.AddAutoPrefix("/admin",&amp;MainContorlller{}),
MainController has method List and Page.
visit the url /admin/main/list to execute List function
/admin/main/page to execute Page function.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.AddMethod" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L402">AddMethod</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.AddMethod" title="Go to ControllerRegister.AddMethod" aria-label="Go to ControllerRegister.AddMethod">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) AddMethod(method, pattern <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>)</pre>
    </div>
  <p>AddMethod add http method router
usage:
</p><pre>AddMethod("get","/api/:id", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.Any" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L393">Any</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Any" title="Go to ControllerRegister.Any" aria-label="Go to ControllerRegister.Any">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) Any(pattern <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>)</pre>
    </div>
  <p>Any add all method
usage:
</p><pre>Any("/api/:id", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.Delete" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L357">Delete</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Delete" title="Go to ControllerRegister.Delete" aria-label="Go to ControllerRegister.Delete">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) Delete(pattern <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>)</pre>
    </div>
  <p>Delete add delete method
usage:
</p><pre>Delete("/api/:id", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.FindPolicy" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/policy.go#L27">FindPolicy</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.FindPolicy" title="Go to ControllerRegister.FindPolicy" aria-label="Go to ControllerRegister.FindPolicy">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.7.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) FindPolicy(cont *<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">context</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a>) []<a href="https://pkg.go.dev/github.com/astaxie/beego#PolicyFunc">PolicyFunc</a></pre>
    </div>
  <p>FindPolicy Find Router info for URL
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.FindRouter" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L992">FindRouter</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.FindRouter" title="Go to ControllerRegister.FindRouter" aria-label="Go to ControllerRegister.FindRouter">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.7.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) FindRouter(context *<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">beecontext</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a>) (routerInfo *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInfo">ControllerInfo</a>, isFind <a href="https://pkg.go.dev/builtin#bool">bool</a>)</pre>
    </div>
  <p>FindRouter Find Router info for URL
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.Get" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L330">Get</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Get" title="Go to ControllerRegister.Get" aria-label="Go to ControllerRegister.Get">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) Get(pattern <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>)</pre>
    </div>
  <p>Get add get method
usage:
</p><pre>Get("/", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.GetContext" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L316">GetContext</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.GetContext" title="Go to ControllerRegister.GetContext" aria-label="Go to ControllerRegister.GetContext">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.12.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) GetContext() *<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">beecontext</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a></pre>
    </div>
  <p>GetContext returns a context from pool, so usually you should remember to call Reset function to clean the context
And don't forget to give back context to pool
example:
</p><pre>ctx := p.GetContext()
ctx.Reset(w, q)
defer p.GiveBackContext(ctx)
</pre>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.GiveBackContext" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L321">GiveBackContext</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.GiveBackContext" title="Go to ControllerRegister.GiveBackContext" aria-label="Go to ControllerRegister.GiveBackContext">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.12.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) GiveBackContext(ctx *<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">beecontext</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a>)</pre>
    </div>
  <p>GiveBackContext put the ctx into pool so that it could be reuse
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.Handler" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L432">Handler</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Handler" title="Go to ControllerRegister.Handler" aria-label="Go to ControllerRegister.Handler">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) Handler(pattern <a href="https://pkg.go.dev/builtin#string">string</a>, h <a href="https://pkg.go.dev/net/http">http</a>.<a href="https://pkg.go.dev/net/http#Handler">Handler</a>, options ...interface{})</pre>
    </div>
  <p>Handler add user defined Handler
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.Head" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L366">Head</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Head" title="Go to ControllerRegister.Head" aria-label="Go to ControllerRegister.Head">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) Head(pattern <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>)</pre>
    </div>
  <p>Head add head method
usage:
</p><pre>Head("/api/:id", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.Include" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L254">Include</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Include" title="Go to ControllerRegister.Include" aria-label="Go to ControllerRegister.Include">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) Include(cList ...<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>)</pre>
    </div>
  <p>Include only when the Runmode is dev will generate router file in the router/auto.go from the controller
Include(&amp;BankAccount{}, &amp;OrderController{},&amp;RefundController{},&amp;ReceiptController{})
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.InsertFilter" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L491">InsertFilter</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.InsertFilter" title="Go to ControllerRegister.InsertFilter" aria-label="Go to ControllerRegister.InsertFilter">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) InsertFilter(pattern <a href="https://pkg.go.dev/builtin#string">string</a>, pos <a href="https://pkg.go.dev/builtin#int">int</a>, filter <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>, params ...<a href="https://pkg.go.dev/builtin#bool">bool</a>) <a href="https://pkg.go.dev/builtin#error">error</a></pre>
    </div>
  <p>InsertFilter Add a FilterFunc with pattern rule and action constant.
params is for:
</p><ol class="Documentation-numberList">
  <li value="1">setting the returnOnOutput value (false allows multiple filters to execute)</li>
  <li value="2">determining whether or not params need to be reset.</li>
</ol>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.Options" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L384">Options</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Options" title="Go to ControllerRegister.Options" aria-label="Go to ControllerRegister.Options">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) Options(pattern <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>)</pre>
    </div>
  <p>Options add options method
usage:
</p><pre>Options("/api/:id", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.Patch" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L375">Patch</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Patch" title="Go to ControllerRegister.Patch" aria-label="Go to ControllerRegister.Patch">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) Patch(pattern <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>)</pre>
    </div>
  <p>Patch add patch method
usage:
</p><pre>Patch("/api/:id", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.Post" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L339">Post</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Post" title="Go to ControllerRegister.Post" aria-label="Go to ControllerRegister.Post">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) Post(pattern <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>)</pre>
    </div>
  <p>Post add post method
usage:
</p><pre>Post("/api", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.Put" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L348">Put</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.Put" title="Go to ControllerRegister.Put" aria-label="Go to ControllerRegister.Put">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) Put(pattern <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>)</pre>
    </div>
  <p>Put add put method
usage:
</p><pre>Put("/api/:id", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})
</pre>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.ServeHTTP" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L694">ServeHTTP</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.ServeHTTP" title="Go to ControllerRegister.ServeHTTP" aria-label="Go to ControllerRegister.ServeHTTP">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) ServeHTTP(rw <a href="https://pkg.go.dev/net/http">http</a>.<a href="https://pkg.go.dev/net/http#ResponseWriter">ResponseWriter</a>, r *<a href="https://pkg.go.dev/net/http">http</a>.<a href="https://pkg.go.dev/net/http#Request">Request</a>)</pre>
    </div>
  <p>Implement http.Handler interface.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="ControllerRegister.URLFor" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*ControllerRegister) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L525">URLFor</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister.URLFor" title="Go to ControllerRegister.URLFor" aria-label="Go to ControllerRegister.URLFor">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (p *<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerRegister">ControllerRegister</a>) URLFor(endpoint <a href="https://pkg.go.dev/builtin#string">string</a>, values ...interface{}) <a href="https://pkg.go.dev/builtin#string">string</a></pre>
    </div>
  <p>URLFor does another controller handler in this request function.
it can access any controller method.
</p>

  

  </div>
  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="FileSystem" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/fs.go#L9">FileSystem</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#FileSystem" title="Go to FileSystem" aria-label="Go to FileSystem">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.11.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type FileSystem struct {
}</pre>
    </div>
  
<div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="FileSystem.Open" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (FileSystem) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/fs.go#L12">Open</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#FileSystem.Open" title="Go to FileSystem.Open" aria-label="Go to FileSystem.Open">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.11.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (d <a href="https://pkg.go.dev/github.com/astaxie/beego#FileSystem">FileSystem</a>) Open(name <a href="https://pkg.go.dev/builtin#string">string</a>) (<a href="https://pkg.go.dev/net/http">http</a>.<a href="https://pkg.go.dev/net/http#File">File</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</pre>
    </div>
  

  

  </div>
  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="FilterFunc" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/filter.go#L20">FilterFunc</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc" title="Go to FilterFunc" aria-label="Go to FilterFunc">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type FilterFunc func(*<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">context</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a>)</pre>
    </div>
  <p>FilterFunc defines a filter function which is invoked before the controller handler is executed.
</p>

  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="FilterHandler" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/router.go#L87">FilterHandler</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#FilterHandler" title="Go to FilterHandler" aria-label="Go to FilterHandler">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type FilterHandler interface {
<span id="FilterHandler.Filter" data-kind="method">	Filter(*<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">beecontext</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span>}</pre>
    </div>
  <p>FilterHandler is an interface for
</p>
<div class="Documentation-typeVariable">
    <div class="Documentation-declaration">
      <pre>var (
<span id="HTTPMETHOD" data-kind="variable">	<span class="comment">// HTTPMETHOD list the supported http methods.</span>
</span>	HTTPMETHOD = map[<a href="https://pkg.go.dev/builtin#string">string</a>]<a href="https://pkg.go.dev/builtin#bool">bool</a>{
		"GET":       <a href="https://pkg.go.dev/builtin#true">true</a>,
		"POST":      <a href="https://pkg.go.dev/builtin#true">true</a>,
		"PUT":       <a href="https://pkg.go.dev/builtin#true">true</a>,
		"DELETE":    <a href="https://pkg.go.dev/builtin#true">true</a>,
		"PATCH":     <a href="https://pkg.go.dev/builtin#true">true</a>,
		"OPTIONS":   <a href="https://pkg.go.dev/builtin#true">true</a>,
		"HEAD":      <a href="https://pkg.go.dev/builtin#true">true</a>,
		"TRACE":     <a href="https://pkg.go.dev/builtin#true">true</a>,
		"CONNECT":   <a href="https://pkg.go.dev/builtin#true">true</a>,
		"MKCOL":     <a href="https://pkg.go.dev/builtin#true">true</a>,
		"COPY":      <a href="https://pkg.go.dev/builtin#true">true</a>,
		"MOVE":      <a href="https://pkg.go.dev/builtin#true">true</a>,
		"PROPFIND":  <a href="https://pkg.go.dev/builtin#true">true</a>,
		"PROPPATCH": <a href="https://pkg.go.dev/builtin#true">true</a>,
		"LOCK":      <a href="https://pkg.go.dev/builtin#true">true</a>,
		"UNLOCK":    <a href="https://pkg.go.dev/builtin#true">true</a>,
	}

<span id="DefaultAccessLogFilter" data-kind="variable">	<span class="comment">// DefaultAccessLogFilter will skip the accesslog if return true</span>
</span>	DefaultAccessLogFilter <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterHandler">FilterHandler</a> = &amp;logFilter{}
)</pre>
    </div>
  
</div>
  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="FilterRouter" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/filter.go#L25">FilterRouter</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#FilterRouter" title="Go to FilterRouter" aria-label="Go to FilterRouter">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type FilterRouter struct {
	<span class="comment">// contains filtered or unexported fields</span>
}</pre>
    </div>
  <p>FilterRouter defines a filter operation which is invoked before the controller handler is executed.
It can match the URL against a pattern, and execute a filter function
when a request with a matching URL arrives.
</p>
<div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="FilterRouter.ValidRouter" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*FilterRouter) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/filter.go#L36">ValidRouter</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#FilterRouter.ValidRouter" title="Go to FilterRouter.ValidRouter" aria-label="Go to FilterRouter.ValidRouter">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (f *<a href="https://pkg.go.dev/github.com/astaxie/beego#FilterRouter">FilterRouter</a>) ValidRouter(url <a href="https://pkg.go.dev/builtin#string">string</a>, ctx *<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">context</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#bool">bool</a></pre>
    </div>
  <p>ValidRouter checks if the current request is matched by this filter.
If the request is matched, the values of the URL parameters defined
by the filter pattern are also returned.
</p>

  

  </div>
  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="FlashData" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/flash.go#L24">FlashData</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#FlashData" title="Go to FlashData" aria-label="Go to FlashData">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type FlashData struct {
<span id="FlashData.Data" data-kind="field">	Data map[<a href="https://pkg.go.dev/builtin#string">string</a>]<a href="https://pkg.go.dev/builtin#string">string</a>
</span>}</pre>
    </div>
  <p>FlashData is a tools to maintain data when using across request.
</p>
<div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NewFlash" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/flash.go#L29">NewFlash</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NewFlash" title="Go to NewFlash" aria-label="Go to NewFlash">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NewFlash() *<a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData">FlashData</a></pre>
    </div>
  <p>NewFlash return a new empty FlashData struct.
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="ReadFromRequest" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/flash.go#L92">ReadFromRequest</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#ReadFromRequest" title="Go to ReadFromRequest" aria-label="Go to ReadFromRequest">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func ReadFromRequest(c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData">FlashData</a></pre>
    </div>
  <p>ReadFromRequest parsed flash data from encoded values in cookie.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="FlashData.Error" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*FlashData) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/flash.go#L72">Error</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Error" title="Go to FlashData.Error" aria-label="Go to FlashData.Error">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (fd *<a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData">FlashData</a>) Error(msg <a href="https://pkg.go.dev/builtin#string">string</a>, args ...interface{})</pre>
    </div>
  <p>Error writes error message to flash.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="FlashData.Notice" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*FlashData) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/flash.go#L54">Notice</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Notice" title="Go to FlashData.Notice" aria-label="Go to FlashData.Notice">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (fd *<a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData">FlashData</a>) Notice(msg <a href="https://pkg.go.dev/builtin#string">string</a>, args ...interface{})</pre>
    </div>
  <p>Notice writes notice message to flash.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="FlashData.Set" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*FlashData) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/flash.go#L36">Set</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Set" title="Go to FlashData.Set" aria-label="Go to FlashData.Set">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (fd *<a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData">FlashData</a>) Set(key <a href="https://pkg.go.dev/builtin#string">string</a>, msg <a href="https://pkg.go.dev/builtin#string">string</a>, args ...interface{})</pre>
    </div>
  <p>Set message to flash
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="FlashData.Store" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*FlashData) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/flash.go#L82">Store</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Store" title="Go to FlashData.Store" aria-label="Go to FlashData.Store">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (fd *<a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData">FlashData</a>) Store(c *<a href="https://pkg.go.dev/github.com/astaxie/beego#Controller">Controller</a>)</pre>
    </div>
  <p>Store does the saving operation of flash data.
the data are encoded and saved in cookie.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="FlashData.Success" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*FlashData) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/flash.go#L45">Success</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Success" title="Go to FlashData.Success" aria-label="Go to FlashData.Success">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.4.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (fd *<a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData">FlashData</a>) Success(msg <a href="https://pkg.go.dev/builtin#string">string</a>, args ...interface{})</pre>
    </div>
  <p>Success writes success message to flash.
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="FlashData.Warning" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*FlashData) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/flash.go#L63">Warning</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#FlashData.Warning" title="Go to FlashData.Warning" aria-label="Go to FlashData.Warning">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (fd *<a href="https://pkg.go.dev/github.com/astaxie/beego#FlashData">FlashData</a>) Warning(msg <a href="https://pkg.go.dev/builtin#string">string</a>, args ...interface{})</pre>
    </div>
  <p>Warning writes warning message to flash.
</p>

  

  </div>
  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="LinkNamespace" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L27">LinkNamespace</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace" title="Go to LinkNamespace" aria-label="Go to LinkNamespace">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type LinkNamespace func(*<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>)</pre>
    </div>
  <p>LinkNamespace used as link action
</p>
<div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSAfter" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L293">NSAfter</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSAfter" title="Go to NSAfter" aria-label="Go to NSAfter">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSAfter(filterList ...<a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSAfter add Namespace FinishRouter filter
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSAny" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L349">NSAny</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSAny" title="Go to NSAny" aria-label="Go to NSAny">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSAny(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSAny call Namespace Any
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSAutoPrefix" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L377">NSAutoPrefix</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSAutoPrefix" title="Go to NSAutoPrefix" aria-label="Go to NSAutoPrefix">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSAutoPrefix(prefix <a href="https://pkg.go.dev/builtin#string">string</a>, c <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSAutoPrefix call Namespace AutoPrefix
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSAutoRouter" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L370">NSAutoRouter</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSAutoRouter" title="Go to NSAutoRouter" aria-label="Go to NSAutoRouter">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSAutoRouter(c <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSAutoRouter call Namespace AutoRouter
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSBefore" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L286">NSBefore</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSBefore" title="Go to NSBefore" aria-label="Go to NSBefore">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSBefore(filterList ...<a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSBefore Namespace BeforeRouter filter
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSCond" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L279">NSCond</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSCond" title="Go to NSCond" aria-label="Go to NSCond">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSCond(cond namespaceCond) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSCond is Namespace Condition
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSDelete" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L342">NSDelete</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSDelete" title="Go to NSDelete" aria-label="Go to NSDelete">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSDelete(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSDelete call Namespace Delete
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSGet" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L314">NSGet</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSGet" title="Go to NSGet" aria-label="Go to NSGet">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSGet(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSGet call Namespace Get
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSHandler" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L392">NSHandler</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSHandler" title="Go to NSHandler" aria-label="Go to NSHandler">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.1</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSHandler(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, h <a href="https://pkg.go.dev/net/http">http</a>.<a href="https://pkg.go.dev/net/http#Handler">Handler</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSHandler add handler
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSHead" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L328">NSHead</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSHead" title="Go to NSHead" aria-label="Go to NSHead">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSHead(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSHead call Namespace Head
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSInclude" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L300">NSInclude</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSInclude" title="Go to NSInclude" aria-label="Go to NSInclude">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSInclude(cList ...<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSInclude Namespace Include ControllerInterface
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSNamespace" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L384">NSNamespace</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSNamespace" title="Go to NSNamespace" aria-label="Go to NSNamespace">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSNamespace(prefix <a href="https://pkg.go.dev/builtin#string">string</a>, params ...<a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSNamespace add sub Namespace
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSOptions" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L356">NSOptions</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSOptions" title="Go to NSOptions" aria-label="Go to NSOptions">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSOptions(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSOptions call Namespace Options
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSPatch" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L363">NSPatch</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSPatch" title="Go to NSPatch" aria-label="Go to NSPatch">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSPatch(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSPatch call Namespace Patch
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSPost" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L321">NSPost</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSPost" title="Go to NSPost" aria-label="Go to NSPost">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSPost(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSPost call Namespace Post
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSPut" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L335">NSPut</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSPut" title="Go to NSPut" aria-label="Go to NSPut">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSPut(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSPut call Namespace Put
</p>

  

  </div><div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NSRouter" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L307">NSRouter</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NSRouter" title="Go to NSRouter" aria-label="Go to NSRouter">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NSRouter(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, c <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>, mappingMethods ...<a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a></pre>
    </div>
  <p>NSRouter call Namespace Router
</p>

  

  </div>
  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="Listen" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/config.go#L53">Listen</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Listen" title="Go to Listen" aria-label="Go to Listen">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type Listen struct {
<span id="Listen.Graceful" data-kind="field">	Graceful          <a href="https://pkg.go.dev/builtin#bool">bool</a> <span class="comment">// Graceful means use graceful module to start the server</span>
</span><span id="Listen.ServerTimeOut" data-kind="field">	ServerTimeOut     <a href="https://pkg.go.dev/builtin#int64">int64</a>
</span><span id="Listen.ListenTCP4" data-kind="field">	ListenTCP4        <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="Listen.EnableHTTP" data-kind="field">	EnableHTTP        <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="Listen.HTTPAddr" data-kind="field">	HTTPAddr          <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="Listen.HTTPPort" data-kind="field">	HTTPPort          <a href="https://pkg.go.dev/builtin#int">int</a>
</span><span id="Listen.AutoTLS" data-kind="field">	AutoTLS           <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="Listen.Domains" data-kind="field">	Domains           []<a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="Listen.TLSCacheDir" data-kind="field">	TLSCacheDir       <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="Listen.EnableHTTPS" data-kind="field">	EnableHTTPS       <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="Listen.EnableMutualHTTPS" data-kind="field">	EnableMutualHTTPS <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="Listen.HTTPSAddr" data-kind="field">	HTTPSAddr         <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="Listen.HTTPSPort" data-kind="field">	HTTPSPort         <a href="https://pkg.go.dev/builtin#int">int</a>
</span><span id="Listen.HTTPSCertFile" data-kind="field">	HTTPSCertFile     <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="Listen.HTTPSKeyFile" data-kind="field">	HTTPSKeyFile      <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="Listen.TrustCaFile" data-kind="field">	TrustCaFile       <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="Listen.ClientAuth" data-kind="field">	ClientAuth        <a href="https://pkg.go.dev/crypto/tls">tls</a>.<a href="https://pkg.go.dev/crypto/tls#ClientAuthType">ClientAuthType</a>
</span><span id="Listen.EnableAdmin" data-kind="field">	EnableAdmin       <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="Listen.AdminAddr" data-kind="field">	AdminAddr         <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="Listen.AdminPort" data-kind="field">	AdminPort         <a href="https://pkg.go.dev/builtin#int">int</a>
</span><span id="Listen.EnableFcgi" data-kind="field">	EnableFcgi        <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="Listen.EnableStdIo" data-kind="field">	EnableStdIo       <a href="https://pkg.go.dev/builtin#bool">bool</a> <span class="comment">// EnableStdIo works with EnableFcgi Use FCGI via standard I/O</span>
</span>}</pre>
    </div>
  <p>Listen holds for http and https related config
</p>

  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="LogConfig" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/config.go#L116">LogConfig</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#LogConfig" title="Go to LogConfig" aria-label="Go to LogConfig">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type LogConfig struct {
<span id="LogConfig.AccessLogs" data-kind="field">	AccessLogs       <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="LogConfig.EnableStaticLogs" data-kind="field">	EnableStaticLogs <a href="https://pkg.go.dev/builtin#bool">bool</a>   <span class="comment">//log static files requests default: false</span>
</span><span id="LogConfig.AccessLogsFormat" data-kind="field">	AccessLogsFormat <a href="https://pkg.go.dev/builtin#string">string</a> <span class="comment">//access log format: JSON_FORMAT, APACHE_FORMAT or empty string</span>
</span><span id="LogConfig.FileLineNum" data-kind="field">	FileLineNum      <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="LogConfig.Outputs" data-kind="field">	Outputs          map[<a href="https://pkg.go.dev/builtin#string">string</a>]<a href="https://pkg.go.dev/builtin#string">string</a> <span class="comment">// Store Adaptor : config</span>
</span>}</pre>
    </div>
  <p>LogConfig holds Log related config
</p>

  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="M" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/beego.go#L35">M</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#M" title="Go to M" aria-label="Go to M">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.11.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type M map[<a href="https://pkg.go.dev/builtin#string">string</a>]interface{}</pre>
    </div>
  <p>M is Map shortcut
</p>
<div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="PrintTree" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/admin.go#L204">PrintTree</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#PrintTree" title="Go to PrintTree" aria-label="Go to PrintTree">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.8.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func PrintTree() <a href="https://pkg.go.dev/github.com/astaxie/beego#M">M</a></pre>
    </div>
  <p>PrintTree prints all registered routers.
</p>

  

  </div>
  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="MiddleWare" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/app.go#L60">MiddleWare</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#MiddleWare" title="Go to MiddleWare" aria-label="Go to MiddleWare">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.9.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type MiddleWare func(<a href="https://pkg.go.dev/net/http">http</a>.<a href="https://pkg.go.dev/net/http#Handler">Handler</a>) <a href="https://pkg.go.dev/net/http">http</a>.<a href="https://pkg.go.dev/net/http#Handler">Handler</a></pre>
    </div>
  <p>MiddleWare function for http.Handler
</p>

  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="Namespace" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L30">Namespace</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace" title="Go to Namespace" aria-label="Go to Namespace">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type Namespace struct {
	<span class="comment">// contains filtered or unexported fields</span>
}</pre>
    </div>
  <p>Namespace is store all the info
</p>
<div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NewNamespace" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L36">NewNamespace</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NewNamespace" title="Go to NewNamespace" aria-label="Go to NewNamespace">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NewNamespace(prefix <a href="https://pkg.go.dev/builtin#string">string</a>, params ...<a href="https://pkg.go.dev/github.com/astaxie/beego#LinkNamespace">LinkNamespace</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>NewNamespace get new Namespace
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.Any" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L171">Any</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Any" title="Go to Namespace.Any" aria-label="Go to Namespace.Any">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) Any(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>Any same as beego.Any
refer: <a href="https://godoc.org/github.com/astaxie/beego#Any">https://godoc.org/github.com/astaxie/beego#Any</a>
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.AutoPrefix" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L115">AutoPrefix</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.AutoPrefix" title="Go to Namespace.AutoPrefix" aria-label="Go to Namespace.AutoPrefix">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) AutoPrefix(prefix <a href="https://pkg.go.dev/builtin#string">string</a>, c <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>AutoPrefix same as beego.AutoPrefix
refer: <a href="https://godoc.org/github.com/astaxie/beego#AutoPrefix">https://godoc.org/github.com/astaxie/beego#AutoPrefix</a>
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.AutoRouter" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L108">AutoRouter</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.AutoRouter" title="Go to Namespace.AutoRouter" aria-label="Go to Namespace.AutoRouter">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) AutoRouter(c <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>AutoRouter same as beego.AutoRouter
refer: <a href="https://godoc.org/github.com/astaxie/beego#AutoRouter">https://godoc.org/github.com/astaxie/beego#AutoRouter</a>
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.Cond" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L57">Cond</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Cond" title="Go to Namespace.Cond" aria-label="Go to Namespace.Cond">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) Cond(cond namespaceCond) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>Cond set condition function
if cond return true can run this namespace, else can't
usage:
</p><pre>ns.Cond(func (ctx *context.Context) bool{
      if ctx.Input.Domain() == "api.beego.me" {
        return true
      }
      return false
  })
</pre><p>Cond as the first filter
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.Delete" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L136">Delete</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Delete" title="Go to Namespace.Delete" aria-label="Go to Namespace.Delete">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) Delete(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>Delete same as beego.Delete
refer: <a href="https://godoc.org/github.com/astaxie/beego#Delete">https://godoc.org/github.com/astaxie/beego#Delete</a>
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.Filter" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L86">Filter</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Filter" title="Go to Namespace.Filter" aria-label="Go to Namespace.Filter">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) Filter(action <a href="https://pkg.go.dev/builtin#string">string</a>, filter ...<a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>Filter add filter in the Namespace
action has before &amp; after
FilterFunc
usage:
</p><pre>Filter("before", func (ctx *context.Context){
      _, ok := ctx.Input.Session("uid").(int)
      if !ok &amp;&amp; ctx.Request.RequestURI != "/login" {
         ctx.Redirect(302, "/login")
       }
  })
</pre>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.Get" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L122">Get</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Get" title="Go to Namespace.Get" aria-label="Go to Namespace.Get">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) Get(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>Get same as beego.Get
refer: <a href="https://godoc.org/github.com/astaxie/beego#Get">https://godoc.org/github.com/astaxie/beego#Get</a>
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.Handler" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L178">Handler</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Handler" title="Go to Namespace.Handler" aria-label="Go to Namespace.Handler">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) Handler(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, h <a href="https://pkg.go.dev/net/http">http</a>.<a href="https://pkg.go.dev/net/http#Handler">Handler</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>Handler same as beego.Handler
refer: <a href="https://godoc.org/github.com/astaxie/beego#Handler">https://godoc.org/github.com/astaxie/beego#Handler</a>
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.Head" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L150">Head</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Head" title="Go to Namespace.Head" aria-label="Go to Namespace.Head">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) Head(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>Head same as beego.Head
refer: <a href="https://godoc.org/github.com/astaxie/beego#Head">https://godoc.org/github.com/astaxie/beego#Head</a>
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.Include" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L185">Include</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Include" title="Go to Namespace.Include" aria-label="Go to Namespace.Include">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) Include(cList ...<a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>Include add include class
refer: <a href="https://godoc.org/github.com/astaxie/beego#Include">https://godoc.org/github.com/astaxie/beego#Include</a>
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.Namespace" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L207">Namespace</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Namespace" title="Go to Namespace.Namespace" aria-label="Go to Namespace.Namespace">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) Namespace(ns ...*<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>Namespace add nest Namespace
usage:
ns := beego.NewNamespace(“/v1”).
Namespace(
</p><pre>beego.NewNamespace("/shop").
    Get("/:id", func(ctx *context.Context) {
        ctx.Output.Body([]byte("shopinfo"))
}),
beego.NewNamespace("/order").
    Get("/:id", func(ctx *context.Context) {
        ctx.Output.Body([]byte("orderinfo"))
}),
beego.NewNamespace("/crm").
    Get("/:id", func(ctx *context.Context) {
        ctx.Output.Body([]byte("crminfo"))
}),
</pre><p>)
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.Options" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L157">Options</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Options" title="Go to Namespace.Options" aria-label="Go to Namespace.Options">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) Options(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>Options same as beego.Options
refer: <a href="https://godoc.org/github.com/astaxie/beego#Options">https://godoc.org/github.com/astaxie/beego#Options</a>
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.Patch" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L164">Patch</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Patch" title="Go to Namespace.Patch" aria-label="Go to Namespace.Patch">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) Patch(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>Patch same as beego.Patch
refer: <a href="https://godoc.org/github.com/astaxie/beego#Patch">https://godoc.org/github.com/astaxie/beego#Patch</a>
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.Post" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L129">Post</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Post" title="Go to Namespace.Post" aria-label="Go to Namespace.Post">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) Post(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>Post same as beego.Post
refer: <a href="https://godoc.org/github.com/astaxie/beego#Post">https://godoc.org/github.com/astaxie/beego#Post</a>
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.Put" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L143">Put</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Put" title="Go to Namespace.Put" aria-label="Go to Namespace.Put">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) Put(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, f <a href="https://pkg.go.dev/github.com/astaxie/beego#FilterFunc">FilterFunc</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>Put same as beego.Put
refer: <a href="https://godoc.org/github.com/astaxie/beego#Put">https://godoc.org/github.com/astaxie/beego#Put</a>
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Namespace.Router" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Namespace) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go#L101">Router</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Namespace.Router" title="Go to Namespace.Router" aria-label="Go to Namespace.Router">¶</a></span>
  <span class="Documentation-sinceVersion">
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (n *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a>) Router(rootpath <a href="https://pkg.go.dev/builtin#string">string</a>, c <a href="https://pkg.go.dev/github.com/astaxie/beego#ControllerInterface">ControllerInterface</a>, mappingMethods ...<a href="https://pkg.go.dev/builtin#string">string</a>) *<a href="https://pkg.go.dev/github.com/astaxie/beego#Namespace">Namespace</a></pre>
    </div>
  <p>Router same as beego.Rourer
refer: <a href="https://godoc.org/github.com/astaxie/beego#Router">https://godoc.org/github.com/astaxie/beego#Router</a>
</p>

  

  </div>
  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="PolicyFunc" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/policy.go#L24">PolicyFunc</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#PolicyFunc" title="Go to PolicyFunc" aria-label="Go to PolicyFunc">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.7.2</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type PolicyFunc func(*<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">context</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a>)</pre>
    </div>
  <p>PolicyFunc defines a policy function which is invoked before the controller handler is executed.
</p>

  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="SessionConfig" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/config.go#L99">SessionConfig</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#SessionConfig" title="Go to SessionConfig" aria-label="Go to SessionConfig">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type SessionConfig struct {
<span id="SessionConfig.SessionOn" data-kind="field">	SessionOn                    <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="SessionConfig.SessionProvider" data-kind="field">	SessionProvider              <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="SessionConfig.SessionName" data-kind="field">	SessionName                  <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="SessionConfig.SessionGCMaxLifetime" data-kind="field">	SessionGCMaxLifetime         <a href="https://pkg.go.dev/builtin#int64">int64</a>
</span><span id="SessionConfig.SessionProviderConfig" data-kind="field">	SessionProviderConfig        <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="SessionConfig.SessionCookieLifeTime" data-kind="field">	SessionCookieLifeTime        <a href="https://pkg.go.dev/builtin#int">int</a>
</span><span id="SessionConfig.SessionAutoSetCookie" data-kind="field">	SessionAutoSetCookie         <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="SessionConfig.SessionDomain" data-kind="field">	SessionDomain                <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="SessionConfig.SessionDisableHTTPOnly" data-kind="field">	SessionDisableHTTPOnly       <a href="https://pkg.go.dev/builtin#bool">bool</a> <span class="comment">// used to allow for cross domain cookies/javascript cookies.</span>
</span><span id="SessionConfig.SessionEnableSidInHTTPHeader" data-kind="field">	SessionEnableSidInHTTPHeader <a href="https://pkg.go.dev/builtin#bool">bool</a> <span class="comment">// enable store/get the sessionId into/from http headers</span>
</span><span id="SessionConfig.SessionNameInHTTPHeader" data-kind="field">	SessionNameInHTTPHeader      <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="SessionConfig.SessionEnableSidInURLQuery" data-kind="field">	SessionEnableSidInURLQuery   <a href="https://pkg.go.dev/builtin#bool">bool</a> <span class="comment">// enable get the sessionId from Url Query params</span>
</span><span id="SessionConfig.SessionCookieSameSite" data-kind="field">	SessionCookieSameSite        <a href="https://pkg.go.dev/net/http">http</a>.<a href="https://pkg.go.dev/net/http#SameSite">SameSite</a>
</span>}</pre>
    </div>
  <p>SessionConfig holds session related config
</p>

  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="Tree" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/tree.go#L34">Tree</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Tree" title="Go to Tree" aria-label="Go to Tree">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type Tree struct {
	<span class="comment">// contains filtered or unexported fields</span>
}</pre>
    </div>
  <p>Tree has three elements: FixRouter/wildcard/leaves
fixRouter stores Fixed Router
wildcard stores params
leaves store the endpoint information
</p>
<div class="Documentation-typeFunc">
    
  
  
    <h4 tabindex="-1" id="NewTree" data-kind="function" class="Documentation-typeFuncHeader">
      <span>func <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/tree.go#L46">NewTree</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#NewTree" title="Go to NewTree" aria-label="Go to NewTree">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func NewTree() *<a href="https://pkg.go.dev/github.com/astaxie/beego#Tree">Tree</a></pre>
    </div>
  <p>NewTree return a new Tree
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Tree.AddRouter" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Tree) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/tree.go#L203">AddRouter</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Tree.AddRouter" title="Go to Tree.AddRouter" aria-label="Go to Tree.AddRouter">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (t *<a href="https://pkg.go.dev/github.com/astaxie/beego#Tree">Tree</a>) AddRouter(pattern <a href="https://pkg.go.dev/builtin#string">string</a>, runObject interface{})</pre>
    </div>
  <p>AddRouter call addseg function
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Tree.AddTree" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Tree) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/tree.go#L52">AddTree</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Tree.AddTree" title="Go to Tree.AddTree" aria-label="Go to Tree.AddTree">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (t *<a href="https://pkg.go.dev/github.com/astaxie/beego#Tree">Tree</a>) AddTree(prefix <a href="https://pkg.go.dev/builtin#string">string</a>, tree *<a href="https://pkg.go.dev/github.com/astaxie/beego#Tree">Tree</a>)</pre>
    </div>
  <p>AddTree will add tree to the exist Tree
prefix should has no params
</p>

  

  </div><div class="Documentation-typeMethod">
    
  
  
    <h4 tabindex="-1" id="Tree.Match" data-kind="method" class="Documentation-typeMethodHeader">
      <span>func (*Tree) <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/tree.go#L286">Match</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#Tree.Match" title="Go to Tree.Match" aria-label="Go to Tree.Match">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.3.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>func (t *<a href="https://pkg.go.dev/github.com/astaxie/beego#Tree">Tree</a>) Match(pattern <a href="https://pkg.go.dev/builtin#string">string</a>, ctx *<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">context</a>.<a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context#Context">Context</a>) (runObject interface{})</pre>
    </div>
  <p>Match router to runObject &amp; params
</p>

  

  </div>
  

    </div><div class="Documentation-type">
      
  
  
    <h4 tabindex="-1" id="WebConfig" data-kind="type" class="Documentation-typeHeader">
      <span>type <a class="Documentation-source" href="https://github.com/astaxie/beego/blob/v1.12.3/config.go#L79">WebConfig</a> <a class="Documentation-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#WebConfig" title="Go to WebConfig" aria-label="Go to WebConfig">¶</a></span>
  <span class="Documentation-sinceVersion">
    
      <span class="Documentation-sinceVersionLabel">added in</span>
      <span class="Documentation-sinceVersionVersion">v1.6.0</span>
    
  </span>
</h4>

    
    <div class="Documentation-declaration">
      <pre>type WebConfig struct {
<span id="WebConfig.AutoRender" data-kind="field">	AutoRender             <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="WebConfig.EnableDocs" data-kind="field">	EnableDocs             <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="WebConfig.FlashName" data-kind="field">	FlashName              <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="WebConfig.FlashSeparator" data-kind="field">	FlashSeparator         <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="WebConfig.DirectoryIndex" data-kind="field">	DirectoryIndex         <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="WebConfig.StaticDir" data-kind="field">	StaticDir              map[<a href="https://pkg.go.dev/builtin#string">string</a>]<a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="WebConfig.StaticExtensionsToGzip" data-kind="field">	StaticExtensionsToGzip []<a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="WebConfig.StaticCacheFileSize" data-kind="field">	StaticCacheFileSize    <a href="https://pkg.go.dev/builtin#int">int</a>
</span><span id="WebConfig.StaticCacheFileNum" data-kind="field">	StaticCacheFileNum     <a href="https://pkg.go.dev/builtin#int">int</a>
</span><span id="WebConfig.TemplateLeft" data-kind="field">	TemplateLeft           <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="WebConfig.TemplateRight" data-kind="field">	TemplateRight          <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="WebConfig.ViewsPath" data-kind="field">	ViewsPath              <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="WebConfig.EnableXSRF" data-kind="field">	EnableXSRF             <a href="https://pkg.go.dev/builtin#bool">bool</a>
</span><span id="WebConfig.XSRFKey" data-kind="field">	XSRFKey                <a href="https://pkg.go.dev/builtin#string">string</a>
</span><span id="WebConfig.XSRFExpire" data-kind="field">	XSRFExpire             <a href="https://pkg.go.dev/builtin#int">int</a>
</span><span id="WebConfig.Session" data-kind="field">	Session                <a href="https://pkg.go.dev/github.com/astaxie/beego#SessionConfig">SessionConfig</a>
</span>}</pre>
    </div>
  <p>WebConfig holds web related config
</p>

  

    </div></section></div> 






      
    </div>
  </div>

        
      
      
        
  <div class="UnitFiles js-unitFiles">
    <h2 class="UnitFiles-title" id="section-sourcefiles">
      <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/insert_drive_file_gm_grey_24dp.svg" alt="">
      Source Files
      <a class="UnitFiles-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#section-sourcefiles" title="Go to Source Files" aria-label="Go to Source Files">¶</a>
    </h2>
    <div class="UnitFiles-titleLink">
      <a href="https://github.com/astaxie/beego/tree/v1.12.3" target="_blank" rel="noopener">View all Source files</a>
    </div>
    <div>
      <ul class="UnitFiles-fileList"><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/admin.go" target="_blank" rel="noopener" title="admin.go">admin.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/adminui.go" target="_blank" rel="noopener" title="adminui.go">adminui.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/app.go" target="_blank" rel="noopener" title="app.go">app.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/beego.go" target="_blank" rel="noopener" title="beego.go">beego.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/build_info.go" target="_blank" rel="noopener" title="build_info.go">build_info.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/config.go" target="_blank" rel="noopener" title="config.go">config.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/controller.go" target="_blank" rel="noopener" title="controller.go">controller.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/doc.go" target="_blank" rel="noopener" title="doc.go">doc.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/error.go" target="_blank" rel="noopener" title="error.go">error.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/filter.go" target="_blank" rel="noopener" title="filter.go">filter.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/flash.go" target="_blank" rel="noopener" title="flash.go">flash.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/fs.go" target="_blank" rel="noopener" title="fs.go">fs.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/hooks.go" target="_blank" rel="noopener" title="hooks.go">hooks.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/log.go" target="_blank" rel="noopener" title="log.go">log.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/mime.go" target="_blank" rel="noopener" title="mime.go">mime.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/namespace.go" target="_blank" rel="noopener" title="namespace.go">namespace.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/parser.go" target="_blank" rel="noopener" title="parser.go">parser.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/policy.go" target="_blank" rel="noopener" title="policy.go">policy.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/router.go" target="_blank" rel="noopener" title="router.go">router.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/staticfile.go" target="_blank" rel="noopener" title="staticfile.go">staticfile.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/template.go" target="_blank" rel="noopener" title="template.go">template.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/templatefunc.go" target="_blank" rel="noopener" title="templatefunc.go">templatefunc.go</a>
          </li><li>
            <a href="https://github.com/astaxie/beego/blob/v1.12.3/tree.go" target="_blank" rel="noopener" title="tree.go">tree.go</a>
          </li></ul>
    </div>
  </div>

      
      
        
  <div class="UnitDirectories js-unitDirectories">
    <h2 class="UnitDirectories-title" id="section-directories">
      <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/folder_gm_grey_24dp.svg" alt="">
      Directories
      <a class="UnitDirectories-idLink" href="https://pkg.go.dev/github.com/astaxie/beego#section-directories" title="Go to Directories" aria-label="Go to Directories">¶</a>
    </h2>
    <div class="UnitDirectories-toggles">
      <div class="UnitDirectories-toggleButtons">
        <button class="js-showInternalDirectories" data-test-id="internal-directories-toggle" data-gtmc="directories button" aria-label="Show Internal Directories">
          Show internal
        </button>
        <button class="js-expandAllDirectories" data-test-id="directories-toggle" data-gtmc="directories button" aria-label="Expand all directories" aria-live="polite" style="display: block;">Expand all</button>
      </div>
    </div>
    <table class="UnitDirectories-table UnitDirectories-table--tree js-expandableTable" data-test-id="UnitDirectories-table">
      <tbody><tr class="UnitDirectories-tableHeader UnitDirectories-tableHeader--tree">
        <th>Path</th>
        <th class="UnitDirectories-desktopSynopsis">Synopsis</th>
      </tr>
      
          
  
  <tr class="" aria-controls="cache-memcache cache-redis cache-ssdb ">
    <td data-aria-owns="cache-memcache cache-redis cache-ssdb " id="cache">
      <div class="UnitDirectories-pathCell">
        <div><button type="button" class="go-Button go-Button--inline UnitDirectories-toggleButton" aria-expanded="false" aria-label="3 more from" aria-controls="cache-memcache cache-redis cache-ssdb " aria-labelledby="cache-button cache" id="cache-button">
              <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/arrow_right_gm_grey_24dp.svg" alt="">
            </button><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/cache">cache</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis">Package cache provide a Cache interface and some implement engine Usage: import( "github.com/astaxie/beego/cache" ) bm, err := cache.NewCache("memory", `{"interval":60}`) Use it like this: bm.Put("astaxie", 1, 10 * time.Second) bm.Get("astaxie") bm.IsExist("astaxie") bm.Delete("astaxie") more docs http://beego.me/docs/module/cache.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package cache provide a Cache interface and some implement engine Usage: import( "github.com/astaxie/beego/cache" ) bm, err := cache.NewCache("memory", `{"interval":60}`) Use it like this: bm.Put("astaxie", 1, 10 * time.Second) bm.Get("astaxie") bm.IsExist("astaxie") bm.Delete("astaxie") more docs http://beego.me/docs/module/cache.md</td></tr><tr class="hidden" id="cache-memcache">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/cache/memcache">memcache</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package memcache for cache provider depend on github.com/bradfitz/gomemcache/memcache go install github.com/bradfitz/gomemcache/memcache Usage: import( _ "github.com/astaxie/beego/cache/memcache" "github.com/astaxie/beego/cache" ) bm, err := cache.NewCache("memcache", `{"conn":"127.0.0.1:11211"}`) more docs http://beego.me/docs/module/cache.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package memcache for cache provider depend on github.com/bradfitz/gomemcache/memcache go install github.com/bradfitz/gomemcache/memcache Usage: import( _ "github.com/astaxie/beego/cache/memcache" "github.com/astaxie/beego/cache" ) bm, err := cache.NewCache("memcache", `{"conn":"127.0.0.1:11211"}`) more docs http://beego.me/docs/module/cache.md</td></tr><tr class="hidden" id="cache-redis">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/cache/redis">redis</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package redis for cache provider depend on github.com/gomodule/redigo/redis go install github.com/gomodule/redigo/redis Usage: import( _ "github.com/astaxie/beego/cache/redis" "github.com/astaxie/beego/cache" ) bm, err := cache.NewCache("redis", `{"conn":"127.0.0.1:11211"}`) more docs http://beego.me/docs/module/cache.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package redis for cache provider depend on github.com/gomodule/redigo/redis go install github.com/gomodule/redigo/redis Usage: import( _ "github.com/astaxie/beego/cache/redis" "github.com/astaxie/beego/cache" ) bm, err := cache.NewCache("redis", `{"conn":"127.0.0.1:11211"}`) more docs http://beego.me/docs/module/cache.md</td></tr><tr class="hidden" id="cache-ssdb">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/cache/ssdb">ssdb</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis"></div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis"></td></tr>

      
          
  
  <tr class="" aria-controls="config-env config-xml config-yaml ">
    <td data-aria-owns="config-env config-xml config-yaml " id="config">
      <div class="UnitDirectories-pathCell">
        <div><button type="button" class="go-Button go-Button--inline UnitDirectories-toggleButton" aria-expanded="false" aria-label="3 more from" aria-controls="config-env config-xml config-yaml " aria-labelledby="config-button config" id="config-button">
              <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/arrow_right_gm_grey_24dp.svg" alt="">
            </button><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/config">config</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis">Package config is used to parse config.</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package config is used to parse config.</td></tr><tr class="hidden" id="config-env">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/config/env">env</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package env is used to parse environment.</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package env is used to parse environment.</td></tr><tr class="hidden" id="config-xml">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/config/xml">xml</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package xml for config provider.</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package xml for config provider.</td></tr><tr class="hidden" id="config-yaml">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/config/yaml">yaml</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package yaml for config provider depend on github.com/beego/goyaml2 go install github.com/beego/goyaml2 Usage: import( _ "github.com/astaxie/beego/config/yaml" "github.com/astaxie/beego/config" ) cnf, err := config.NewConfig("yaml", "config.yaml") More docs http://beego.me/docs/module/config.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package yaml for config provider depend on github.com/beego/goyaml2 go install github.com/beego/goyaml2 Usage: import( _ "github.com/astaxie/beego/config/yaml" "github.com/astaxie/beego/config" ) cnf, err := config.NewConfig("yaml", "config.yaml") More docs http://beego.me/docs/module/config.md</td></tr>

      
          
  
  <tr class="" aria-controls="context-param ">
    <td data-aria-owns="context-param " id="context">
      <div class="UnitDirectories-pathCell">
        <div><button type="button" class="go-Button go-Button--inline UnitDirectories-toggleButton" aria-expanded="false" aria-label="1 more from" aria-controls="context-param " aria-labelledby="context-button context" id="context-button">
              <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/arrow_right_gm_grey_24dp.svg" alt="">
            </button><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context">context</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis">Package context provide the context utils Usage: import "github.com/astaxie/beego/context" ctx := context.Context{Request:req,ResponseWriter:rw} more docs http://beego.me/docs/module/context.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package context provide the context utils Usage: import "github.com/astaxie/beego/context" ctx := context.Context{Request:req,ResponseWriter:rw} more docs http://beego.me/docs/module/context.md</td></tr><tr class="hidden" id="context-param">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/context/param">param</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis"></div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis"></td></tr>

      
          
  
  <tr class="">
    <td data-aria-owns="" id="grace">
      <div class="UnitDirectories-pathCell">
        <div><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/grace">grace</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis">Package grace use to hot reload Description: http://grisha.org/blog/2014/06/03/graceful-restart-in-golang/ Usage: import( "log" "net/http" "os" "github.com/astaxie/beego/grace" ) func handler(w http.ResponseWriter, r *http.Request) { w.Write([]byte("WORLD!")) } func main() { mux := http.NewServeMux() mux.HandleFunc("/hello", handler) err := grace.ListenAndServe("localhost:8080", mux) if err != nil { log.Println(err) } log.Println("Server on 8080 stopped") os.Exit(0) }</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package grace use to hot reload Description: http://grisha.org/blog/2014/06/03/graceful-restart-in-golang/ Usage: import( "log" "net/http" "os" "github.com/astaxie/beego/grace" ) func handler(w http.ResponseWriter, r *http.Request) { w.Write([]byte("WORLD!")) } func main() { mux := http.NewServeMux() mux.HandleFunc("/hello", handler) err := grace.ListenAndServe("localhost:8080", mux) if err != nil { log.Println(err) } log.Println("Server on 8080 stopped") os.Exit(0) }</td></tr>

      
          
  
  <tr class="">
    <td data-aria-owns="" id="httplib">
      <div class="UnitDirectories-pathCell">
        <div><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/httplib">httplib</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis">Package httplib is used as http.Client Usage: import "github.com/astaxie/beego/httplib" b := httplib.Post("http://beego.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) more docs http://beego.me/docs/module/httplib.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package httplib is used as http.Client Usage: import "github.com/astaxie/beego/httplib" b := httplib.Post("http://beego.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) more docs http://beego.me/docs/module/httplib.md</td></tr>

      
          
  
  <tr class="" aria-controls="logs-alils logs-es ">
    <td data-aria-owns="logs-alils logs-es " id="logs">
      <div class="UnitDirectories-pathCell">
        <div><button type="button" class="go-Button go-Button--inline UnitDirectories-toggleButton" aria-expanded="false" aria-label="2 more from" aria-controls="logs-alils logs-es " aria-labelledby="logs-button logs" id="logs-button">
              <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/arrow_right_gm_grey_24dp.svg" alt="">
            </button><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/logs">logs</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis">Package logs provide a general log interface Usage: import "github.com/astaxie/beego/logs" log := NewLogger(10000) log.SetLogger("console", "") &gt; the first params stand for how many channel Use it like this: log.Trace("trace") log.Info("info") log.Warn("warning") log.Debug("debug") log.Critical("critical") more docs http://beego.me/docs/module/logs.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package logs provide a general log interface Usage: import "github.com/astaxie/beego/logs" log := NewLogger(10000) log.SetLogger("console", "") &gt; the first params stand for how many channel Use it like this: log.Trace("trace") log.Info("info") log.Warn("warning") log.Debug("debug") log.Critical("critical") more docs http://beego.me/docs/module/logs.md</td></tr><tr class="hidden" id="logs-alils">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/logs/alils">alils</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package alils implements the SDK(v0.5.0) of Simple Log Service(abbr.</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package alils implements the SDK(v0.5.0) of Simple Log Service(abbr.</td></tr><tr class="hidden" id="logs-es">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/logs/es">es</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis"></div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis"></td></tr>

      
          
  
  <tr class="">
    <td data-aria-owns="" id="metric">
      <div class="UnitDirectories-pathCell">
        <div><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/metric">metric</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis"></div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis"></td></tr>

      
          
  
  <tr class="">
    <td data-aria-owns="" id="migration">
      <div class="UnitDirectories-pathCell">
        <div><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/migration">migration</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis">Package migration enables you to generate migrations back and forth.</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package migration enables you to generate migrations back and forth.</td></tr>

      
          
  
  <tr class="">
    <td data-aria-owns="" id="orm">
      <div class="UnitDirectories-pathCell">
        <div><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/orm">orm</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis">Package orm provide ORM for MySQL/PostgreSQL/sqlite Simple Usage package main import ( "fmt" "github.com/astaxie/beego/orm" _ "github.com/go-sql-driver/mysql" // import your used driver ) // Model Struct type User struct { Id int `orm:"auto"` Name string `orm:"size(100)"` } func init() { orm.RegisterDataBase("default", "mysql", "root:root@/my_db?charset=utf8", 30) } func main() { o := orm.NewOrm() user := User{Name: "slene"} // insert id, err := o.Insert(&amp;user) // update user.Name = "astaxie" num, err := o.Update(&amp;user) // read one u := User{Id: user.Id} err = o.Read(&amp;u) // delete num, err = o.Delete(&amp;u) } more docs: http://beego.me/docs/mvc/model/overview.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package orm provide ORM for MySQL/PostgreSQL/sqlite Simple Usage package main import ( "fmt" "github.com/astaxie/beego/orm" _ "github.com/go-sql-driver/mysql" // import your used driver ) // Model Struct type User struct { Id int `orm:"auto"` Name string `orm:"size(100)"` } func init() { orm.RegisterDataBase("default", "mysql", "root:root@/my_db?charset=utf8", 30) } func main() { o := orm.NewOrm() user := User{Name: "slene"} // insert id, err := o.Insert(&amp;user) // update user.Name = "astaxie" num, err := o.Update(&amp;user) // read one u := User{Id: user.Id} err = o.Read(&amp;u) // delete num, err = o.Delete(&amp;u) } more docs: http://beego.me/docs/mvc/model/overview.md</td></tr>

      
          
  
  <tr class="" aria-controls="plugins-apiauth plugins-auth plugins-authz plugins-cors ">
    <td data-aria-owns="plugins-apiauth plugins-auth plugins-authz plugins-cors " id="plugins">
      <div class="UnitDirectories-pathCell">
        <div><button type="button" class="go-Button go-Button--inline UnitDirectories-toggleButton" aria-expanded="false" aria-label="4 more from" aria-controls="plugins-apiauth plugins-auth plugins-authz plugins-cors " aria-labelledby="plugins-button plugins" id="plugins-button">
              <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/arrow_right_gm_grey_24dp.svg" alt="">
            </button><span>plugins</span>
      </div></div></td>
      <td class="UnitDirectories-desktopSynopsis"></td></tr><tr class="hidden" id="plugins-apiauth">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/plugins/apiauth">apiauth</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package apiauth provides handlers to enable apiauth support.</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package apiauth provides handlers to enable apiauth support.</td></tr><tr class="hidden" id="plugins-auth">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/plugins/auth">auth</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package auth provides handlers to enable basic auth support.</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package auth provides handlers to enable basic auth support.</td></tr><tr class="hidden" id="plugins-authz">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/plugins/authz">authz</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package authz provides handlers to enable ACL, RBAC, ABAC authorization support.</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package authz provides handlers to enable ACL, RBAC, ABAC authorization support.</td></tr><tr class="hidden" id="plugins-cors">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/plugins/cors">cors</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package cors provides handlers to enable CORS support.</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package cors provides handlers to enable CORS support.</td></tr>

      
          
  
  <tr class="" aria-controls="session-couchbase session-ledis session-memcache session-mysql session-postgres session-redis session-redis_cluster session-redis_sentinel session-ssdb ">
    <td data-aria-owns="session-couchbase session-ledis session-memcache session-mysql session-postgres session-redis session-redis_cluster session-redis_sentinel session-ssdb " id="session">
      <div class="UnitDirectories-pathCell">
        <div><button type="button" class="go-Button go-Button--inline UnitDirectories-toggleButton" aria-expanded="false" aria-label="9 more from" aria-controls="session-couchbase session-ledis session-memcache session-mysql session-postgres session-redis session-redis_cluster session-redis_sentinel session-ssdb " aria-labelledby="session-button session" id="session-button">
              <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/arrow_right_gm_grey_24dp.svg" alt="">
            </button><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session">session</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis">Package session provider Usage: import( "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("memory", `{"cookieName":"gosessionid", "enableSetCookie,omitempty": true, "gclifetime":3600, "maxLifetime": 3600, "secure": false, "cookieLifeTime": 3600, "providerConfig": ""}`) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package session provider Usage: import( "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("memory", `{"cookieName":"gosessionid", "enableSetCookie,omitempty": true, "gclifetime":3600, "maxLifetime": 3600, "secure": false, "cookieLifeTime": 3600, "providerConfig": ""}`) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md</td></tr><tr class="hidden" id="session-couchbase">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session/couchbase">couchbase</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package couchbase for session provider depend on github.com/couchbaselabs/go-couchbasee go install github.com/couchbaselabs/go-couchbase Usage: import( _ "github.com/astaxie/beego/session/couchbase" "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("couchbase", “{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"http://host:port/, Pool, Bucket"}“) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package couchbase for session provider depend on github.com/couchbaselabs/go-couchbasee go install github.com/couchbaselabs/go-couchbase Usage: import( _ "github.com/astaxie/beego/session/couchbase" "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("couchbase", “{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"http://host:port/, Pool, Bucket"}“) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md</td></tr><tr class="hidden" id="session-ledis">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session/ledis">ledis</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package ledis provide session Provider</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package ledis provide session Provider</td></tr><tr class="hidden" id="session-memcache">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session/memcache">memcache</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package memcache for session provider depend on github.com/bradfitz/gomemcache/memcache go install github.com/bradfitz/gomemcache/memcache Usage: import( _ "github.com/astaxie/beego/session/memcache" "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("memcache", “{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"127.0.0.1:11211"}“) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package memcache for session provider depend on github.com/bradfitz/gomemcache/memcache go install github.com/bradfitz/gomemcache/memcache Usage: import( _ "github.com/astaxie/beego/session/memcache" "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("memcache", “{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"127.0.0.1:11211"}“) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md</td></tr><tr class="hidden" id="session-mysql">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session/mysql">mysql</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package mysql for session provider depends on github.com/go-sql-driver/mysql: go install github.com/go-sql-driver/mysql mysql session support need create table as sql: CREATE TABLE `session` ( `session_key` char(64) NOT NULL, `session_data` blob, `session_expiry` int(11) unsigned NOT NULL, PRIMARY KEY (`session_key`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; Usage: import( _ "github.com/astaxie/beego/session/mysql" "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("mysql", “{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"[username[:password]@][protocol[(address)]]/dbname[?param1=value1&amp;...&amp;paramN=valueN]"}“) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package mysql for session provider depends on github.com/go-sql-driver/mysql: go install github.com/go-sql-driver/mysql mysql session support need create table as sql: CREATE TABLE `session` ( `session_key` char(64) NOT NULL, `session_data` blob, `session_expiry` int(11) unsigned NOT NULL, PRIMARY KEY (`session_key`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; Usage: import( _ "github.com/astaxie/beego/session/mysql" "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("mysql", “{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"[username[:password]@][protocol[(address)]]/dbname[?param1=value1&amp;...&amp;paramN=valueN]"}“) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md</td></tr><tr class="hidden" id="session-postgres">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session/postgres">postgres</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package postgres for session provider depends on github.com/lib/pq: go install github.com/lib/pq needs this table in your database: CREATE TABLE session ( session_key char(64) NOT NULL, session_data bytea, session_expiry timestamp NOT NULL, CONSTRAINT session_key PRIMARY KEY(session_key) ); will be activated with these settings in app.conf: SessionOn = true SessionProvider = postgresql SessionSavePath = "user=a password=b dbname=c sslmode=disable" SessionName = session Usage: import( _ "github.com/astaxie/beego/session/postgresql" "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("postgresql", “{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"user=pqgotest dbname=pqgotest sslmode=verify-full"}“) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package postgres for session provider depends on github.com/lib/pq: go install github.com/lib/pq needs this table in your database: CREATE TABLE session ( session_key char(64) NOT NULL, session_data bytea, session_expiry timestamp NOT NULL, CONSTRAINT session_key PRIMARY KEY(session_key) ); will be activated with these settings in app.conf: SessionOn = true SessionProvider = postgresql SessionSavePath = "user=a password=b dbname=c sslmode=disable" SessionName = session Usage: import( _ "github.com/astaxie/beego/session/postgresql" "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("postgresql", “{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"user=pqgotest dbname=pqgotest sslmode=verify-full"}“) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md</td></tr><tr class="hidden" id="session-redis">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session/redis">redis</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package redis for session provider depend on github.com/gomodule/redigo/redis go install github.com/gomodule/redigo/redis Usage: import( _ "github.com/astaxie/beego/session/redis" "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("redis", “{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"127.0.0.1:7070"}“) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package redis for session provider depend on github.com/gomodule/redigo/redis go install github.com/gomodule/redigo/redis Usage: import( _ "github.com/astaxie/beego/session/redis" "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("redis", “{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"127.0.0.1:7070"}“) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md</td></tr><tr class="hidden" id="session-redis_cluster">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session/redis_cluster">redis_cluster</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package redis for session provider depend on github.com/go-redis/redis go install github.com/go-redis/redis Usage: import( _ "github.com/astaxie/beego/session/redis_cluster" "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("redis_cluster", “{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"127.0.0.1:7070;127.0.0.1:7071"}“) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package redis for session provider depend on github.com/go-redis/redis go install github.com/go-redis/redis Usage: import( _ "github.com/astaxie/beego/session/redis_cluster" "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("redis_cluster", “{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"127.0.0.1:7070;127.0.0.1:7071"}“) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md</td></tr><tr class="hidden" id="session-redis_sentinel">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session/redis_sentinel">redis_sentinel</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package redis for session provider depend on github.com/go-redis/redis go install github.com/go-redis/redis Usage: import( _ "github.com/astaxie/beego/session/redis_sentinel" "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("redis_sentinel", “{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"127.0.0.1:26379;127.0.0.2:26379"}“) go globalSessions.GC() } more detail about params: please check the notes on the function SessionInit in this package</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package redis for session provider depend on github.com/go-redis/redis go install github.com/go-redis/redis Usage: import( _ "github.com/astaxie/beego/session/redis_sentinel" "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("redis_sentinel", “{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"127.0.0.1:26379;127.0.0.2:26379"}“) go globalSessions.GC() } more detail about params: please check the notes on the function SessionInit in this package</td></tr><tr class="hidden" id="session-ssdb">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/session/ssdb">ssdb</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis"></div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis"></td></tr>

      
          
  
  <tr class="">
    <td data-aria-owns="" id="swagger">
      <div class="UnitDirectories-pathCell">
        <div><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/swagger">swagger</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis">Package swagger struct definition</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package swagger struct definition</td></tr>

      
          
  
  <tr class="">
    <td data-aria-owns="" id="testing">
      <div class="UnitDirectories-pathCell">
        <div><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/testing">testing</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis"></div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis"></td></tr>

      
          
  
  <tr class="">
    <td data-aria-owns="" id="toolbox">
      <div class="UnitDirectories-pathCell">
        <div><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/toolbox">toolbox</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis">Package toolbox healthcheck type DatabaseCheck struct { } func (dc *DatabaseCheck) Check() error { if dc.isConnected() { return nil } else { return errors.New("can't connect database") } } AddHealthCheck("database",&amp;DatabaseCheck{}) more docs: http://beego.me/docs/module/toolbox.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package toolbox healthcheck type DatabaseCheck struct { } func (dc *DatabaseCheck) Check() error { if dc.isConnected() { return nil } else { return errors.New("can't connect database") } } AddHealthCheck("database",&amp;DatabaseCheck{}) more docs: http://beego.me/docs/module/toolbox.md</td></tr>

      
          
  
  <tr class="" aria-controls="utils-captcha utils-pagination ">
    <td data-aria-owns="utils-captcha utils-pagination " id="utils">
      <div class="UnitDirectories-pathCell">
        <div><button type="button" class="go-Button go-Button--inline UnitDirectories-toggleButton" aria-expanded="false" aria-label="2 more from" aria-controls="utils-captcha utils-pagination " aria-labelledby="utils-button utils" id="utils-button">
              <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/arrow_right_gm_grey_24dp.svg" alt="">
            </button><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/utils">utils</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis"></div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis"></td></tr><tr class="hidden" id="utils-captcha">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/utils/captcha">captcha</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package captcha implements generation and verification of image CAPTCHAs.</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package captcha implements generation and verification of image CAPTCHAs.</td></tr><tr class="hidden" id="utils-pagination">
      <td>
        <div class="UnitDirectories-subdirectory">
          <span>
            <a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/utils/pagination">pagination</a>
            
          </span>
          <div class="UnitDirectories-mobileSynopsis">Package pagination provides utilities to setup a paginator within the context of a http request.</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package pagination provides utilities to setup a paginator within the context of a http request.</td></tr>

      
          
  
  <tr class="">
    <td data-aria-owns="" id="validation">
      <div class="UnitDirectories-pathCell">
        <div><a href="https://pkg.go.dev/github.com/astaxie/beego@v1.12.3/validation">validation</a>
            
          </div>
          <div class="UnitDirectories-mobileSynopsis">Package validation for validations import ( "github.com/astaxie/beego/validation" "log" ) type User struct { Name string Age int } func main() { u := User{"man", 40} valid := validation.Validation{} valid.Required(u.Name, "name") valid.MaxSize(u.Name, 15, "nameMax") valid.Range(u.Age, 0, 140, "age") if valid.HasErrors() { // validation does not pass // print invalid message for _, err := range valid.Errors { log.Println(err.Key, err.Message) } } // or use like this if v := valid.Max(u.Age, 140, "ageMax"); !v.Ok { log.Println(v.Error.Key, v.Error.Message) } } more info: http://beego.me/docs/mvc/controller/validation.md</div>
        </div>
      </td>
      <td class="UnitDirectories-desktopSynopsis">Package validation for validations import ( "github.com/astaxie/beego/validation" "log" ) type User struct { Name string Age int } func main() { u := User{"man", 40} valid := validation.Validation{} valid.Required(u.Name, "name") valid.MaxSize(u.Name, 15, "nameMax") valid.Range(u.Age, 0, 140, "age") if valid.HasErrors() { // validation does not pass // print invalid message for _, err := range valid.Errors { log.Println(err.Key, err.Message) } } // or use like this if v := valid.Max(u.Age, 140, "ageMax"); !v.Ok { log.Println(v.Error.Key, v.Error.Message) } } more info: http://beego.me/docs/mvc/controller/validation.md</td></tr>

      
    </tbody></table>
  </div>

      
    </div>
  </div>
  <div id="showInternal-description" hidden=""> Click to show internal directories. </div>
  <div id="hideInternal-description" hidden=""> Click to hide internal directories. </div>
</article>
    <footer class="go-Main-footer"></footer>
  </main>

    
  <footer class="go-Footer">
    
    <div class="go-Footer-links">
      <div class="go-Footer-linkColumn">
        <a href="https://go.dev/solutions" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link">
          Why Go
        </a>
        <a href="https://go.dev/solutions#use-cases" class="go-Footer-link" data-gtmc="footer link">
          Use Cases
        </a>
        <a href="https://go.dev/solutions#case-studies" class="go-Footer-link" data-gtmc="footer link">
          Case Studies
        </a>
      </div>
      <div class="go-Footer-linkColumn">
        <a href="https://learn.go.dev/" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link">
          Get Started
        </a>
        <a href="https://play.golang.org/" class="go-Footer-link" data-gtmc="footer link">
          Playground
        </a>
        <a href="https://tour.golang.org/" class="go-Footer-link" data-gtmc="footer link">
          Tour
        </a>
        <a href="https://stackoverflow.com/questions/tagged/go?tab=Newest" class="go-Footer-link" data-gtmc="footer link">
          Stack Overflow
        </a>
        <a href="https://go.dev/help" class="go-Footer-link" data-gtmc="footer link">
          Help
        </a>
      </div>
      <div class="go-Footer-linkColumn">
        <a href="https://pkg.go.dev/" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link">
          Packages
        </a>
        <a href="https://pkg.go.dev/std" class="go-Footer-link" data-gtmc="footer link">
          Standard Library
        </a>
        <a href="https://pkg.go.dev/golang.org/x" class="go-Footer-link" data-gtmc="footer link">
          Sub-repositories
        </a>
        <a href="https://pkg.go.dev/about" class="go-Footer-link" data-gtmc="footer link">
          About Go Packages
        </a>
      </div>
      <div class="go-Footer-linkColumn">
        <a href="https://go.dev/project" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link">
          About
        </a>
        <a href="https://go.dev/dl/" class="go-Footer-link" data-gtmc="footer link">Download</a>
        <a href="https://go.dev/blog" class="go-Footer-link" data-gtmc="footer link">Blog</a>
        <a href="https://github.com/golang/go/issues" class="go-Footer-link" data-gtmc="footer link">
          Issue Tracker
        </a>
        <a href="https://go.dev/doc/devel/release.html" class="go-Footer-link" data-gtmc="footer link">
          Release Notes
        </a>
        <a href="https://blog.golang.org/go-brand" class="go-Footer-link" data-gtmc="footer link">
          Brand Guidelines
        </a>
        <a href="https://go.dev/conduct" class="go-Footer-link" data-gtmc="footer link">
          Code of Conduct
        </a>
      </div>
      <div class="go-Footer-linkColumn">
        <a href="https://www.twitter.com/golang" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link">
          Connect
        </a>
        <a href="https://www.twitter.com/golang" class="go-Footer-link" data-gtmc="footer link">
          Twitter
        </a>
        <a href="https://github.com/golang" class="go-Footer-link" data-gtmc="footer link">GitHub</a>
        <a href="https://invite.slack.golangbridge.org/" class="go-Footer-link" data-gtmc="footer link">
          Slack
        </a>
        <a href="https://reddit.com/r/golang" class="go-Footer-link" data-gtmc="footer link">
          r/golang
        </a>
        <a href="https://www.meetup.com/pro/go" class="go-Footer-link" data-gtmc="footer link">
          Meetup
        </a>
        <a href="https://golangweekly.com/" class="go-Footer-link" data-gtmc="footer link">
          Golang Weekly
        </a>
      </div>
    </div>
    <div class="go-Footer-bottom">
      <img class="go-Footer-gopher" width="1431" height="901" src="./beego package - github.com_astaxie_beego - Go Packages_files/pilot-bust-1431x901.svg" alt="Gopher in flight goggles">
      <ul class="go-Footer-listRow">
        <li class="go-Footer-listItem">
          <a href="https://go.dev/copyright" data-gtmc="footer link">Copyright</a>
        </li>
        <li class="go-Footer-listItem">
          <a href="https://go.dev/tos" data-gtmc="footer link">Terms of Service</a>
        </li>
        <li class="go-Footer-listItem">
          <a href="http://www.google.com/intl/en/policies/privacy/" data-gtmc="footer link" target="_blank" rel="noopener">
            Privacy Policy
          </a>
        </li>
        <li class="go-Footer-listItem">
          <a href="https://go.dev/s/pkgsite-feedback" target="_blank" rel="noopener" data-gtmc="footer link">
            Report an Issue
          </a>
        </li>
        <li class="go-Footer-listItem">
          <button class="go-Button go-Button--text go-Footer-toggleTheme js-toggleTheme" aria-label="Theme Toggle">
            <img data-value="auto" class="go-Icon go-Icon--inverted" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/brightness_6_gm_grey_24dp.svg" alt="System theme">
            <img data-value="dark" class="go-Icon go-Icon--inverted" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/brightness_2_gm_grey_24dp.svg" alt="Dark theme">
            <img data-value="light" class="go-Icon go-Icon--inverted" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/light_mode_gm_grey_24dp.svg" alt="Light theme">
            <p> Theme Toggle </p>
          </button>
        </li>
        <li class="go-Footer-listItem">
          <button class="go-Button go-Button--text go-Footer-keyboard js-openShortcuts" aria-label="Shorcuts Modal">
            <img class="go-Icon go-Icon--inverted" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/keyboard_grey_24dp.svg" alt="">
            <p> Shortcuts Modal </p>
          </button>
        </li>
      </ul>
      <a class="go-Footer-googleLogo" href="https://google.com/" target="_blank" rel="noopener" data-gtmc="footer link">
        <img class="go-Footer-googleLogoImg" height="24" width="72" src="./beego package - github.com_astaxie_beego - Go Packages_files/google-white.svg" alt="Google logo">
      </a>
    </div>
  </footer>

    
  <dialog id="jump-to-modal" class="JumpDialog go-Modal go-Modal--md js-modal">
    <form method="dialog" data-gmtc="jump to form" aria-label="Jump to Identifier">
      <div class="Dialog-title go-Modal-header">
        <h2>Jump to</h2>
        <button class="go-Button go-Button--inline" type="button" data-modal-close="" data-gtmc="modal button" aria-label="Close">
          <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/close_gm_grey_24dp.svg" alt="">
        </button>
      </div>
      <div class="JumpDialog-filter">
        <input class="JumpDialog-input go-Input" autocomplete="off" type="text">
      </div>
      <div class="JumpDialog-body go-Modal-body">
        <div class="JumpDialog-list"></div>
      </div>
      <div class="go-Modal-actions">
        <button class="go-Button" data-test-id="close-dialog">Close</button>
      </div>
    </form>
  </dialog>

  <dialog class="ShortcutsDialog go-Modal go-Modal--sm js-modal">
    <form method="dialog">
      <div class="go-Modal-header">
        <h2>Keyboard shortcuts</h2>
        <button class="go-Button go-Button--inline" type="button" data-modal-close="" data-gtmc="modal button" aria-label="Close">
          <img class="go-Icon" height="24" width="24" src="./beego package - github.com_astaxie_beego - Go Packages_files/close_gm_grey_24dp.svg" alt="">
        </button>
      </div>
      <div class="go-Modal-body">
        <table>
          <tbody>
            <tr><td class="ShortcutsDialog-key">
              <strong>?</strong></td><td> : This menu</td>
            </tr>
            <tr><td class="ShortcutsDialog-key">
              <strong>/</strong></td><td> : Search site</td>
            </tr>
            <tr><td class="ShortcutsDialog-key">
              <strong>f</strong> or <strong>F</strong></td><td> : Jump to</td>
            </tr>
            <tr>
              <td class="ShortcutsDialog-key"><strong>y</strong> or <strong>Y</strong></td>
              <td> : Canonical URL</td>
            </tr>
          </tbody>
        </table>
      </div>
      <div class="go-Modal-actions">
        <button class="go-Button" data-test-id="close-dialog">Close</button>
      </div>
    </form>
  </dialog>

    
      <section class="Cookie-notice js-cookieNotice Cookie-notice--visible">
        <div>go.dev uses cookies from Google to deliver and enhance the quality of its services and to
        analyze traffic. <a target="_blank" href="https://policies.google.com/technologies/cookies">Learn more.</a></div>
        <div><button class="go-Button">Okay</button></div>
      </section>
    
    
      <script>
        // this will throw if the querySelector can’t find the element
        const gtmId = document.querySelector('.js-gtmID').dataset.gtmid;
        if (!gtmId) {
          throw new Error('Google Tag Manager ID not found');
        }
        loadScript(`https://www.googletagmanager.com/gtm.js?id=${gtmId}`);
      </script>
      <noscript>
        <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W8MVQXG"
                height="0" width="0" style="display:none;visibility:hidden">
        </iframe>
      </noscript>
    
    
  
  <div class="js-canonicalURLPath" data-canonical-url-path="/github.com/astaxie/beego@v1.12.3" hidden=""></div>
  <div class="js-playgroundVars" data-modulepath="github.com/astaxie/beego" data-version="v1.12.3" hidden=""></div>
  <script>
    loadScript('/static/frontend/unit/main/main.js')
  </script>

  <script>
    loadScript('/static/frontend/unit/unit.js')
  </script>

  

</body></html>